~/talk

PostgreSQL: Tuning parameters or Tuning Queries? with Henrietta Dombrovskaya

Talkat DjangoCon US 2025 · on Monday, 2025-09-08· at 17:00· Sauganash Ballroom· [databases]
slides:none on file

Claims that tuning Postgres parameters rarely beats fixing queries and indexes, demonstrated on the posgressier dataset from GitHub using actual timings: a sample query runs 2.4s on a clean DB, parameter tweaks (max_parallel_workers_per_gather, work_mem, shared_buffers) shave it toward ~1.1s, but creating two appropriate indexes drops it to 0.06s — roughly a 20x speedup — and removing the parameter tweaks changes nothing. Parameters exist to tell Postgres about cores and memory; indexes and query changes deliver the large wins.

AI-written summary · about

  1. 0:00Introduction
  2. 2:31Talk about tuning parameters
  3. 6:49Query vs parameter tuning
  4. 12:32Real purpose of parameters
  5. 15:02Q&A
  6. 17:10App performance recommendations
~/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.