Django Time-Based Lookups: A Performance Trap

Django Time-Based Lookups: A Performance Trap

Articles
Your “simple” __date filter might be turning a millisecond query into a 30-second table scan—here’s the subtle Django ORM trap and the one-line fix that restores index-level performance.