Bulk Data, Load Away!
summary
A PostgreSQL migration moved 40 million rows and initially slowed from 15 minutes to over six hours before tuning cut it to ~120 minutes. The presenter compares methods: parallel client sessions (4/8/12) regain throughput but use many CPUs, COPY is 2×–10× faster than INSERT patterns yet parallel COPY hits disk I/O limits, and tools like pgloader/pgbulkload gave mixed results; the chosen solution disables constraints, loads data, recreates constraints and moves violating rows to a rejected table to restore speed using a single session.
AI-written summary · about
