~/talk

Optimizing i-queries in Django+Postgres or documentation inaccuracies

TalkinRussianat PyCon Russia 2021 · 2021-09-05..09-06· [django, databases]
links:none on file
slides:none on file

Covers optimizing I-like (case-insensitive) search queries in Django with PostgreSQL, investigating incorrect or unclear documentation about indexes. Describes which PostgreSQL indexes actually help for such searches, how to integrate them with a Django app, and what changed in Django 3 to simplify these optimizations.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54Admin search slowdown
  3. 3:38Query performance impact
  4. 5:16PostgreSQL LIKE operator
  5. 6:48Case sensitivity in queries
  6. 8:39Array handling in queries
  7. 10:00Common query mistakes
  8. 11:47Building dynamic queries
  9. 13:47Customizing default filters
  10. 14:49Query generation in Django
  11. 16:29Query class implementation
  12. 18:03Sequential query execution
  13. 19:10Excluding default filters
  14. 20:41Trigram indexes in PostgreSQL
  15. 21:47Query class benefits
  16. 22:35Indexing strategy
  17. 24:15Rare edge cases
  18. 25:02Q&A
~/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.