~/talk

Leave Your Inhibitions at the Database Connection

Talkat PyOhio 2019 · 2019-07-27..07-28· [databases]
links:none on file
slides:none on file

A migration from hand‑written SQL toward the Django ORM shows concrete wins: raw queries using a raw SQL cursor with fetchall tuples require manual rehydration (namedtuple) and invite SQL‑injection risk, while ORM features like select_related, annotate + Prefetch reduce code, keep results as model objects, and avoid reshaping rows. Examples include LaMetro Councilmatic (committee memberships and custom ordering implemented with a Case ordering via annotation) and a Coordinated Entry report where ORM aggregation replaces a verbose join and extra data transformation, and the ORM solutions perform and read far better.

AI-written summary · about

  1. 0:00Introduction
  2. 2:53Overview
  3. 8:50LA Metro CouncilMatic
  4. 13:42Comfort
  5. 14:32Why the ORM
  6. 15:02Django Docs
  7. 16:07Alert Box Warning
  8. 16:52Data Types
  9. 19:17Data Rich Iterables
  10. 20:57Coordinated Entry Screaming
  11. 27:02Takeaways
  12. 28:12Conclusion
~/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.