~/talk

Making Postgres inserts faster on Azure

Talkat POSETTE: An Event for Postgres 2024 · 2024-06-11..06-13· [databases]
slides:none on file

Practical recipes and numbers: using unlogged tables gives about 5× faster inserts and 10× faster COPY for staging loads; switch heavy imports to the COPY command or micro-batch multi-row INSERTs (send 10–100s of rows per transaction instead of 100K single commits); drop or disable indexes, unique/foreign constraints and triggers for bulk loads; delay HA/read-replica creation until after load; tune wal_buffers (e.g. up to 128MB), shared_buffers (~40% RAM), max_wal_size (up to 64GB) and turn off autovacuum during the load.

AI-written summary · about

  1. 0:00Intro
  2. 2:02Key Scenarios
  3. 2:28Creating unclogged tables
  4. 5:15Using COPY command
  5. 6:48Batch inserts vs Single commits
  6. 8:27Removing/Disabling contraints, triggers, & indexes
  7. 10:26Partitioning the table
  8. 11:42HA & Read Replica
  9. 13:08Tuning server parameters
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.