~/talk

Representing Hierarchies in Relational Databases

Talkat DjangoCon Europe 2018 · 2018-05-23..05-25· [databases, django]
links:none on file
slides:none on file

Relational parent-pointer trees force one database round trip per depth level unless the DB supports WITH RECURSIVE; using that, django-tree implements CTE traversal but is Postgres‑only and alpha. Materialized path (Vadim Tropashko) stores a path string so subtree queries use a single indexed LIKE/starts-with; Django Treebeard uses step length 4 (default) yielding about 1.6 million immediate children capacity per node. Nested sets (django-mptt) give single-query reads but require wide updates on inserts/deletes.

AI-written summary · about

  1. 0:00Introduction
  2. 2:34Problem Statement
  3. 7:01Alternative Solutions
  4. 11:08Nested Sets Tree
  5. 17:18Comparison
~/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.