~/talk

Django REST Framework: Taking your API to the next level

Talkat DjangoCon US 2019 · 2019-09-22..09-27· [python, databases]
slides:none on file

An API example creates about 15,000 tickets to stress performance then applies dynamic serializers to avoid duplicated nested representations, uses select_related and prefetch_related to cut DB queries and drops a slow 2+ minute response to ~124 ms, adds django-filter for URL filtering, enables caching with django-cacheops with Redis and cache_page decorators, and enforces model and field rules via dry-permissions while adding an Excel renderer mixin — the changes are built and demonstrably speed and simplify the API.

AI-written summary · about

  1. 0:00Start
  2. 6:08Dynamic Serializers
  3. 8:17Prefetch
  4. 12:25django-url-filter
  5. 15:42django-cacheops
  6. 18:01DRYPermissions
  7. 22:54XLSXRenderer
~/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.