#33749: Queries take exponential time when filtering in a loop
-------------------------------------+-------------------------------------
Reporter: Enhaloed | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => invalid
Comment:
Hi. There's not enough to demonstrate an issue in Django here.
TBH it looks more like a usage issue. (If `cards` is a QuerySet that never
gets reset you're asking it do ever more work in the loop. Either way, you
need to be using explain to see the work your DB is actually performing.)
Please see TicketClosingReasons/UseSupportChannels for appropriate places
to get help.
If you can identify a concrete issue with a reproduce in Django, then here
is the appropriate place for that.
Good luck.
--
Ticket URL: <https://code.djangoproject.com/ticket/33749#comment:3>
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/0107018113aac41f-8e945743-8bb5-4614-9a2e-57a36ce07af6-000000%40eu-central-1.amazonses.com.