#29794: Duplicate object returned using filter
-------------------------------------+-------------------------------------
Reporter: Lars Solberg | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 2.1
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: duplicate, vacuum | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Lars Solberg):
Absolutly.. This solved itself by doing a VACUUM.. However, auto-vacuum
was enabled, so I guess postgres can be blamed somewhat..?
I tryed to vacuum too quickly, as I can't reproduce and debug the problem
anymore.
If it happens again, I'll dig deeper.
I though something like [i.pk for i in
Server.objects.filter(name='server1')] would generate the same sql queries
as qs[0], qs[1]..
--
Ticket URL: <https://code.djangoproject.com/ticket/29794#comment:4>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.56e2069dee1bacf1d035dcd442ba2311%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.