~/talk

Django with PostgreSQL superpowers

Talkat Python Web Conf 2023 · 2023-03-13..03-17· [django, databases]
slides:none on file

Shows how to use psycopg3 with Django 4.1 and the django.contrib.postgres module to get real Postgres-only gains: random_uuid via pgcrypto for bulk UUID updates, JSONField and functional GIN search vectors with websearch syntax and faster queries, array and ranged fields, trigram similarity, and PostGIS for geodata. Demonstrates django_postgres_copy loading ~1 million rows in just over 3 seconds via temporary tables and compressed files, and ltree (L3) hierarchies with GIST indexes for fast tree queries.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:43Adding PostgreSQL to Django
  3. 5:15Django PostgreSQL module overview
  4. 7:01UUID generation with PostgreSQL
  5. 8:47Full-text search in Django
  6. 11:21PostgreSQL array fields
  7. 13:09Fast data import with Django PostgreSQL copy
  8. 15:56Tree structures with Django Ltree
  9. 17:50Geospatial features with PostGIS
  10. 19:18PostgreSQL tips for Django developers
  11. 20:46Resources and closing
~/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.