#34597: Queryset (split) exclude's usage of Exists is significantly slower than
subquery
-------------------------------------+-------------------------------------
Reporter: Lorand Varga | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by David Sanders):
> but the reporter said that they were also getting poor results with the
provided ORM examples that explicitly don't have this criteria (e.g.
`~Exists(Blog.objects.filter(translation=None, id=OuterRef("id"))`)
Interesting I tried that and the plan was better, though I don't have any
data to work with.
Am eager to hear what the results are.
--
Ticket URL: <https://code.djangoproject.com/ticket/34597#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/0107018867de001c-e5598129-67a0-4b9f-bebf-a1102de8f53b-000000%40eu-central-1.amazonses.com.