|
Chapter 18. Populating a Database
One may need to do a large number of table insertions when first populating a database. Here are some tips and techniques for making that as efficient as possible. Disable Auto-commitTurn off auto-commit and just do one commit at the end. Otherwise Postgres is doing a lot of work for each record added. In general when you are doing bulk inserts, you want to turn off some of the database features to gain speed. |
|||||||||||||||||
With any suggestions or questions please feel free to contact us |