Django: QuerySet Performance and Testing Updates
Django merged four pull requests focused on deprecating inefficient QuerySet.select_related() usage and fixing Oracle compound query compilation. Additional commits improved admin efficiency and cleaned up test dependencies.
Duration: PT1M37S
Episode overview
This episode is a short developer briefing from Django.
It explains recent repository work in plain language.
- Show: Django
- Published: 2026-05-12T10:00:54Z
- Audio duration: PT1M37S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning, this is Django Daily for May 12th, 2026.
Adam Johnson merged a significant deprecation targeting QuerySet.select_related() with no arguments. This change addresses performance issues where calling select_related without specifying fields fetches all relations indiscriminately. The pull request spans 26 files with corresponding admin option deprecations and…
DCSID merged a fix for Oracle compound query compilation, removing unnecessary ordering from combined query components. This resolves compilation issues when Django processes unions as subqueries and eliminates a stale Oracle test failure.
Artirix1927 merged improvements to AdminViewPermissionsTest, replacing hardcoded primary key checks with explicit boolean fields for cleaner test architecture.
Tim Graham merged a constraints test update removing dependencies on generated columns, making the test suite more portable across database backends.
Notable additional commits include Adam Johnson's work making ModelAdmin.list_select_related more efficient by selecting only fields actually used in list_display, and a typo fix in the search documentation.
Nearby episodes from Django
- Weekly Recap - Email Infrastructure & Admin Enhancements
- RedirectView Enhancement and Python 3.15 Compatibility
- Email Backend Overhaul and Admin Actions
- Documentation and Compatibility Fixes
- Python 3.15 Compatibility and Admin Calendar Fixes
- Security and Forms Enhancement
- Security and Email Infrastructure Updates
- Security Triple-Header and Base64 Validation