~/talk

ORM: The Sequel

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

A running demo of the UnicodeX app shows how to inspect schema and rows from the manage.py shell, enumerate models via Model._meta.get_fields, and run queries with .objects.all(), .filter(), .get() and Q objects for AND/OR/NOT logic. The talk shows counting results (44 matches), a mistaken chain of filters producing 712 rows from duplicated joins, and debugging a broken Twitter image entry. It prints generated SQL via connection.queries and advises raw SQL only when necessary and to use IPython for convenience.

AI-written summary · about

  1. 0:00Introduction
  2. 5:50Debugging with Django shell
  3. 14:04Querying and joins in ORM
  4. 26:52ORM in practice debugging
  5. 30:24ORM tips and conclusion
~/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.