On 04/02/2014 04:36 PM, Jeff Janes
wrote:
I restarted the java-based loading. Still with pk in place, (and actually generating the UUIDs etc) I got ~1.1M rows in one minute. And one "LOG: checkpoints are occurring too frequently (24 seconds apart)" with checkpoint_segment now at 6 (v. default 3). In plotting the records v. time in that minute at least it's pretty linear. The time per batch is relatively constant with a few hiccups. (.5 sec per 10K lines). So I've improved things immensely but not entirely sure that the simple config change is the reason. If this continued I would be done inside 40 minutes. With copy interuptus I now get 2.9M records per minute so the load would take only 12 or so minutes. I did get four reports of too-frequent checkpoints 2 at 15 seconds 2 at 9 seconds. I'll need to let each on go to completion. If these numbers are at all accurate and realistic, I'm still impressed with jOOQ, though COPY is rightfully back to its proper place as fastest way to load. |