#15361: QuerySet.get() should use LIMIT 2
--------------------------------------------------------+-------------------
Reporter: mbertheau | Owner:
nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.2
Resolution: | Keywords:
QuerySet get limit MultipleObjectsReturned
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
--------------------------------------------------------+-------------------
Comment (by mbertheau):
I concur. It was indeed in the context of a database design flaw that I
noticed the unneeded row number counting of `get()`.
However, I don't believe that the negative effects of this patch are so
significant that it's worth sacrificing its positive effects, regardless
of their low likelihood of occurring in well designed databases.
lukeplant, do the results of the other benchmark tests differ
significantly?
--
Ticket URL: <http://code.djangoproject.com/ticket/15361#comment:6>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.