~/talk

Tuning Parameters in Postgres vs. Tuning Your Queries

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

Compares changing Postgres configuration versus fixing queries using the postgres_air sample database and live timings: with defaults the query runs ~2.5s, enabling parallelism drops to ~2.1s, raising work_mem 500MB to ~1.8s, increasing shared_buffers to 1GB reaches ~1.0s; adding an index on actual_departure gives ~0.7s and adding a booking_id index plus a query rewrite yields 60 ms, a ~10x win. Notes parameters usually buy ~10–50% while query and application changes can deliver orders-of-magnitude improvement.

AI-written summary · about

  1. 0:00Intro
  2. 1:19Tuning your database - what does it mean?
  3. 5:28Query example
  4. 10:03Let's try something different!
  5. 11:55Understanding the role of parameters
  6. 15:31Application changes
~/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.