#34125: Limiting QuerySet crashes on union() with a single non-empty query
-------------------------------------+-------------------------------------
Reporter: Stefan Hammer | Owner: Simon
| Charette
Type: Bug | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):
In [changeset:"9cb8baa0c4fa2c10789c5c8b65f4465932d4d172" 9cb8baa0]:
{{{#!CommitTicketReference repository=""
revision="9cb8baa0c4fa2c10789c5c8b65f4465932d4d172"
Fixed #35559 -- Avoided unnecessary query on sliced union of empty
queries.
While refs #34125 focused on the SQL correctness of slicing of union of
potentially empty queries it missed an optimization opportunity to avoid
performing a query at all when all queries are empty.
Thanks Lucidiot for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34125#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070190c9c5a7f9-a66728f6-a91e-4f69-bed9-d57fa678fc79-000000%40eu-central-1.amazonses.com.