~/talk

Awesome Automated APIs with Automagic REST

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

A generator introspects Postgres and produces 60,000 endpoints (30,000 tables + aliases), Django models and serializers nightly so schema changes land in version control; permissions defer to LDAP via a shim that queries Postgres ACLs; huge tables (NYSE trades) compress to ~100 TB with a columnar extension; slow counts use count-estimate pagination (query EXPLAIN parsing) to cut responses from minutes to milliseconds; an Django REST framework renderer xlsx exports spreadsheets; publishing time falls from two hours to about three minutes and the system works in production.

AI-written summary · about

  1. 0:00Start
  2. 4:26WRDS: A BRIEF HISTORY
  3. 7:52DUBIOUS DATABASE DECISIONS
  4. 12:12FOUNDATION COMPLETE BUILDING THE RESTFUL API.
  5. 14:32HOW WE BUILT IT: FIELD MAPPING
  6. 16:59END RESULT: MODELS
  7. 19:41BIG DATA PROBLEMS
  8. 22:3260,000 MODELS: SLOW!
  9. 25:06PERMISSIONS FOR 63.000+
  10. 26:37SPEEDING UP SLOW COUNT(*)
  11. 29:30FILTERS ON INDEXED COLUMNS
  12. 30:59SPREADSHEETS
~/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.