#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 question the validity of that benchmark. With 10 rows what you measure
 is probably the overhead of the slicing in the Django ORM. The original
 argument for using LIMIT makes still perfect sense.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15361#comment:4>
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.

Reply via email to