~/talk

Advanced Indexing and Concurrency in Django and PostgreSQL

Talkat DjangoCon Europe 2026 · 2026-04-15..04-19· [databases]
slides:none on file

Builds a Django URL-shortener and uses PostgreSQL EXPLAIN ANALYZE and SQL logging to compare real effects of indexes. Shows index-only scan by including URL in the unique index to drop a disk fetch, and a function-based index turning a 3s domain regex scan into ~50ms (≈60×). Demonstrates partial index reduced size from 7MB to 88KB for hits=0, and a hash index that cuts URL index from 47MB to 32MB and runs faster; BRIN trades space (64KB) for slightly higher latency on correlated timestamps.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:11Speaker background and talk overview
  3. 3:24Building the URL shortener demo
  4. 4:26Inspecting Django SQL queries
  5. 8:19Understanding B-tree indexes
  6. 13:15Inclusive covering indexes
  7. 16:31Partial indexes explained
  8. 21:10Function-based indexes
  9. 25:55Finding unused keys
  10. 30:56Reverse URL lookup
  11. 38:18Hash indexes deep dive
  12. 47:00Index size and performance comparison
  13. 56:40Block range indexes (BRIN)
  14. 1:08:14Common index misconceptions
  15. 1:12:52Summary of indexing techniques
  16. 1:13:56Q&A session
~/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.