in reply to Speeding up Postgres INSERTs
queries, than to do a round trip for each row inserted.INSERT INTO table (a, b, c) VALUES (z, y, x), (w, v, u), (t, s, r), ...
And sometimes, it's faster to first drop all the indices, and recreate them after the inserts are done. But that requires some benchmarking for each case.
several seconds for every 100K INSERTsThat doesn't sound that slow to me. Perhaps you need to hire a Pg specialist to tweak your database.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Speeding up Postgres INSERTs
by punkish (Priest) on Jun 18, 2010 at 14:10 UTC | |
by JavaFan (Canon) on Jun 18, 2010 at 14:59 UTC | |
by punkish (Priest) on Jun 18, 2010 at 15:18 UTC | |
by JavaFan (Canon) on Jun 18, 2010 at 16:58 UTC |