The database is postgresql 9.3.
There is a big table, with 70 more columns. The use case would do 700 inserts per second, and each insert takes one row.
Here is some key items in the postgresql.conf:
shared_buffers = 1024MB # the system memory is 8096MB in total
work_mem = 32MB
maintenance_work_mem = 128MB
bgwriter_delay = 20ms
synchronous_commit = off
checkpoint_segments = 64
checkpoint_completion_target = 0.9
effective_cache_size = 4096MB
log_min_duration_statement = 1000
The log would show that the duration of some inserts exceed 1 second, after the number of rows reaches about ten million.
Anybody help?
COPY
command? – Lukas Eder Jan 6 '16 at 8:25