~/talk

But, why is the admin slow?

Talkat DjangoCon US 2015 · 2015-09-06..09-11· [testing]
slides:none on file

Demo uses Django Debug Toolbar to show an admin list view running 204 queries to 4 by switching from a callable unicode to explicit list_display or list_select_related and cutting load from ~28–30ms to ~1.5ms — a 20x speed up on SQLite local. Examples show mistakes with only/defer causing extra per-row queries, when to use list_select_related vs prefetch_related for FKs vs M2M, and using annotate book_count to push counts into SQL. Caching and Redis complete the toolbox.

AI-written summary · about

  1. 0:00Start
  2. 7:31Django Debug Toolbar
  3. 13:14Use a Custom Query Set
  4. 13:29Custom Query Sets for Fun and Profit
  5. 14:38Defer
  6. 21:25Decrease List per Page
  7. 24:34Sorting through the List of Sql Queries
~/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.