-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build dataset using COPY instead of multi-row inserts
The fastest way to bulk insert data in Postgres is by using COPY. This changes the dataset building to use that. I tried building a dataset for 1000 warehouses using 100 vusers. Without copy this took 100 minutes, with copy it only took 42 minutes. So it reduced the time it takes to build the dataset by ~58%. Docs on the usage of COPY in the tcl Postgres library can be found here: http://pgtclng.sourceforge.net/pgtcldocs/pgtcl-example-copy.html
- Loading branch information
Showing
1 changed file
with
81 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters