~/talk

Django and PostgreSQL: An Even-Closer Union

Talkat DjangoCon US 2016 · 2016-07-17..07-22· [databases]
slides:none on file

Django 1.8 and 1.9 expose PostgreSQL primitives so models can store and query array field and range field types, hstore and JSONB blobs, and use expression indexes and raw SQL migrations. Examples include adding a GIN index for contains/overlaps, a GIST index for ranges, and an exclusion constraint that prevents overlapping room bookings and raises an IntegrityError when violated. Full text search uses tsvector with indexes and optional trigger maintenance. Slides and code samples accompany each feature.

AI-written summary · about

  1. 0:00Intro
  2. 1:35PostgreSQL Arrays != Python Lists
  3. 3:13Array Field Transforms: Index
  4. 3:50Array Field Transforms: Slices
  5. 5:42Indexing Array Fields.
  6. 7:25Why use Array Fields!
  7. 8:27To infinity and beyond!
  8. 8:59Types of Ranges.
  9. 9:45A Hard Problem.
  10. 10:22Constraint Exclusion.
  11. 10:53One Catch.
  12. 11:11btree gist to the rescue!
  13. 12:29And profit!
  14. 13:09Why use range fields?
  15. 13:29JSON Fields.
  16. 13:48JSON Field Queries.
  17. 14:54Why use json instead of jsonb?
  18. 15:48Indexing JSON.
  19. 16:29Why use JSON?
  20. 17:45Full-Text Search!
  21. 18:47Full-Text Configurations
  22. 19:59Fancy Indexing.
~/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.