~/talk

Bulk Data, Load Away!

TalkinFrenchat PG Day France 2019 · on Wednesday, 2019-06-19· [databases]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:47INSERT statements basics
  3. 6:05PostgreSQL partitioning
  4. 8:10Fill factor tuning
  5. 11:20COPY command
  6. 13:51COPY performance
  7. 17:42Transaction logging
  8. 20:35COPY limitations
  9. 22:44pgloader migration
  10. 25:11pg_bulkload bulk
  11. 29:17Constraints script
  12. 32:50Performance tips
  13. 34:40Connector config
  14. 35:26Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.