~/talk

Advanced ORM: Filtering, sorting & summing 40M financial transactions

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

Moves the heavy lifting into Postgres with Django ORM using annotations, F and Q expressions, window functions, JSONB traversal, nested subqueries and outer refs so filtering, grouping, summing and sorting run on the DB instead of iterating Python lists. Handles on‑demand queries over 40 million postings across ~472,000 accounts on ~5,000 properties, and uses materialized views (daily refresh) plus a few raw SQL CTEs/lateral joins when ORM hits limits; overall it works and drastically cuts user wait times.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:31Problem with financial data queries
  3. 7:30Improvising with ORM techniques
  4. 10:47Chain annotations and performance
  5. 12:56Window functions for sliding calculations
  6. 14:43Sorting with dynamic JSON data
  7. 16:50Dynamic subquery generation
  8. 18:57Nested outer refs in subqueries
  9. 19:40Materialized views for heavy queries
  10. 23:30Python vs raw SQL trade-offs
  11. 25:59Q&A and closing remarks
~/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.