Charlie Guo

1 video · 1 event · 2016 · 25 min of video

Talk

0:25:56

I Didn't Know Querysets Could do That

DjangoCon US 2016 · August 24, 2016

Django QuerySets provide far more than basic filtering: `annotate()` and `aggregate()` perform database-side calculations, while `select_related()` and `prefetch_related()` reduce repeated queries and `only()` and `defer()` limit fetched data. Charlie Guo explains how `Q` objects build complex AND/OR/NOT conditions, `F` expressions reference fields in database operations…

Spoken at