Y
Hacker News
new
|
ask
|
show
|
jobs
by
sgarland
337 days ago
Maybe I don’t understand what you’re trying to do, but you can directly control how frequently commits occur.
BEGIN INSERT … —- batch of N size COMMIT AND CHAIN INSERT …
1 comments
PaulDavisThe1st
337 days ago
Chance of Postgres commit mapping 1:1 onto posix fsync or equivalent: slim.
link
anarazel
336 days ago
Without parallelism, each commit will be at least one fdatasync (or fsync, O_SYNC/O_DSYNC write, depending on configuration). With parallelism, concurrent transaction might be flushed together, reducing the total number of fsyncs.
link