~/talk

Implementing a Cross-DB JSONField

Talkat DjangoCon Europe 2020 Β· 2020-09-18..09-19Β· [databases, django]
links:none on file
slides:none on file

Implements a cross-DB JSONField that lands in Django 3.1, showing a tiny TextField-based proof-of-concept, then the real implementation that maps per-backend types and CHECKs in DatabaseWrapper. Covers Postgres json/jsonb, MySQL binary JSON, MariaDB aliasing to LONGTEXT, SQLite’s JSON1 functions, and Oracle VARCHAR/LOB; explains lookup SQL (->, #>, JSON_EXTRACT/UNQUOTE, JSON_VALUE/JSON_QUERY) and which lookups are unsupported on SQLite/Oracle (contains). Explains the JSON null vs SQL NULL gotcha, using Value wrappers and callable defaults, and advertises django-jsonfield-backport for older Django.

AI-written summary Β· about

  1. 0:00Introduction
  2. 1:14Understanding JSONField
  3. 5:05Implementation details
  4. 8:28Custom field design
  5. 10:35Handling edge cases
  6. 14:33Database backends
  7. 18:37Querying JSON data
  8. 28:46Future work and resources
  9. 30:09Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← β†’
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.