Data-Oriented Django Drei
summary
A T3.nano has 5 Gbit/s so a 1 MB HTML payload transfers in ~1.7 ms, yet real server responses hover around 100 ms because roughly 60% of time is in the database and 95% of DB cost is reads. Sequential scans are O(N); B+ tree indexes give O(log N) (≈7 ops for 1k rows, ≈14 for 1M). Use Sentry/Scout/Django Debug Toolbar for APM and Postgres’s EXPLAIN JSON + PG Mustard to get index recommendations; indexes add storage and write overhead (roughly ~20% extra on simple cases).
AI-written summary · about
