~/talk

PostgreSQL Beyond Django: Strategies to Get Max Performance with Álvaro Justen

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

Concrete claims and concrete numbers: a 52M+ row Django demo shows per-row inserts taking days, bulk_create ~2.5 hours and COPY to table via psql 8m20s (≈123k rows/s). Upgrading Postgres cuts table/index size ~5%. Changing ID strategy and downscaling integer types plus reordering columns reduces space (~3% each) and speeds access. Full‑text options compare precomputed search_vector, trigger maintenance, and an expression GIN index; search_vector + GIN index ≈150ms versus ~10s without. Also mentions building a simple Django app and using triggers and specialized indexes.

AI-written summary · about

  1. 0:00PostgreSQL performance intro
  2. 1:03Real-world PostgreSQL use cases
  3. 3:10General PostgreSQL advice
  4. 7:56Why upgrade PostgreSQL
  5. 10:48Data modeling impact
  6. 14:23Optimizing primary keys
  7. 18:42Small integers for space
  8. 23:11Column order for storage
  9. 26:30Automate schema optimization
  10. 28:19Full-text search in PostgreSQL
  11. 33:24Advanced full-text indexing
  12. 37:29PostgreSQL features overview
  13. 39:58Efficient data ingestion
  14. 42:51Q&A
~/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.