How can you use transactions to improve the performance of a long string of database write operations? Learn the answer to this question in this video.
- Transactions are commonly used to increase performance … if a long list of inserts or updates are performed as a unit … they can be performed much faster than as … individual statements. … So, here we're going to use the test database for this lesson … and I've pasted in some SQL statements … from the chapter 9 exercise files. … First we're going to create a table, a simple table … with an ID column and a data column that's of type text. … And I'll go ahead and do that. … And then we're going to insert a thousand rows into … that table and you notice I'm skipping … the begin transaction. … I'm going to just copy and paste this a thousand times which … as a shortcut, I'll do ten of them, one, two, three, four, … five, six, seven, eight, nine, ten. … And then I'll do ten times ten which will be a hundred. … One, two, three, four, five, six, seven, eight, nine, ten. … And then I'll do ten of those which will be a thousand. … One, two, three, four, five, six, seven, eight, nine, ten. … And so now there's a thousand of these inserts. …
This course was created by Bill Weinman. We are pleased to offer this training in our library.
- How databases are organized
- Selecting rows and columns
- Creating new tables
- Inserting and updating data
- Sorting and filtering
- Accessing related tables with JOIN
- Working with strings
- Understanding numeric types
- Using aggregate functions and transactions
- Automating data with triggers
- Creating views
- Using CRUD functions
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times2m 6s
11. Views and Subselects
12. A Simple CRUD Application
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.