~/talk

The denormalized query engine design pattern

Talkat DjangoCon US 2017 · 2017-08-13..08-18· [databases, web-performance]
slides:none on file

Argues that a search index becomes a real-time analytics layer: Elasticsearch or Solr holds denormalized records so queries that would cripple SQL (top twenty tags from Spain or addresses within 500 miles of Toronto) run in milliseconds; example project imports 57,000 DC Inbox emails and returns aggregations in ~4ms. Writes propagate via last‑touched timestamps, queues or by tapping the replication log with python-mysql-replication into Kafka and Dilithium; UI fetches results as IDs then inflate IDs from the database to avoid stale reads.

AI-written summary · about

  1. 0:00Start
  2. 0:06The denormalized query engine design pattern
  3. 3:04Relational weaknesses
  4. 4:42Search engine strengths • Horizontal scaling
  5. 10:02Smart query routing
  6. 26:57Replication log
  7. 27:36Dilithium
  8. 35:05Recommendations
  9. 36:08Geographic search
  10. 37:22Real-time map/reduce
~/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.