~/talk

Anatomy of a Database Operation

Talkat DjangoCon Europe 2025 · 2025-04-23..04-27· [databases, django]
slides:none on file

A practical walkthrough of what actually happens when a Django app queries Crunchy Data Postgress: connection pooling or forking per client, parsing then transform and rewrite into base tables, planner choices (seq scan versus index, nested loop/hash/merge joins) and execution using pages and buffers, MVCC update-as-insert-and-mark-dead plus vacuum to avoid bloat, and returning rows over the network. Includes a tiny Django beer site demo that works for showing plans and uses Explain Analyze + buffers and notes autocommit enabled by default.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:49Demo application and query flow
  3. 3:56Postgres system architecture
  4. 6:10Database connections and pooling
  5. 9:01Query execution steps
  6. 10:28Query parsing and validation
  7. 11:32Transform and rewrite stages
  8. 12:35Query planning and execution
  9. 15:02Understanding execution plans
  10. 17:53How data is stored in tables
  11. 18:55Postgres indexes overview
  12. 20:00Sequential scans and index scans
  13. 21:22Bitmap index and heap scans
  14. 22:25Modifying data inserts
  15. 23:06Transactions and autocommit
  16. 23:27Deletes and MVCC
  17. 24:54Returning results to user
  18. 26:01Optimizing data retrieval
  19. 26:42Useful logging parameters
  20. 28:29Learning resources and Q&A
~/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.