#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 lukeplant): I've done some benchmarks, using djangobench and the query_get benchmark (use my fork https://github.com/spookylukey/djangobench), and this patch actually slows it down for both SQLite and Postgres (I haven't tested MySQL). If you get different results, please let us know so that we can reproduce the performance increase - otherwise we obviously won't commit this. -- Ticket URL: <http://code.djangoproject.com/ticket/15361#comment:3> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.