#6785: QuerySet.get() should only attempt to fetch a limited number of rows
-------------------------------------+-------------------------------------
     Reporter:  deadwisdom           |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |                  Version:  master
    Component:  Database layer       |               Resolution:
  (models, ORM)                      |             Triage Stage:  Accepted
     Severity:  Normal               |      Needs documentation:  0
     Keywords:                       |  Patch needs improvement:  0
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by shai):

 * cc: shai (added)
 * status:  closed => new
 * resolution:  fixed =>


Comment:

 As noted in #23061 the current implementation is problematic on Oracle. It
 also does more work than necessary elsewhere: Slicing a query clones it,
 which is an expensive operation, and potentially makes the database work
 harder.

 It is better to implement this as hinted by the ticket's summary -- by
 limiting the fetches, not the select.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/6785#comment:7>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.50fd7fb89a44104328d0c199c996d3e4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to