~/talk

EXPLAIN: make it make sense

Talkat PostgreSQL Conference Europe 2025 · 2025-10-21..10-24· [databases]
slides:none on file

Shows how EXPLAIN and ANALYZE with PostgreSQL reveal actual vs estimated rows, uses Python/Django and RDS, and proves random_page_cost=4 keeps the planner favoring scans on cloud. Demonstrates concrete fixes: create INDEX ON upper(name) for case-insensitive lookups, install pg_trgm extension for ILIKE partial matches, run ANALYZE after adding indexes, and rewrite OR conditions as UNIONs to speed a seven-table live search — the UNION version runs 4–5× faster and the corrected JSON expression index finally lets the query use an index.

AI-written summary · about

  1. 0:00Introduction to EXPLAIN
  2. 1:50Theory behind database indexes
  3. 8:35Practical query tuning with Django
  4. 12:56Index limitations and fixes
  5. 18:43Trigram indexes for partial text search
  6. 23:40Combining indexes in live search
  7. 27:13Q&A session
~/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.