#7854: get_list_or_404 slice performance
------------------------------------+---------------------------------------
 Reporter:  Sanha                   |       Owner:  nobody    
   Status:  new                     |   Milestone:            
Component:  Database wrapper        |     Version:  SVN       
 Keywords:  shortcuts, performance  |       Stage:  Unreviewed
Has_patch:  0                       |  
------------------------------------+---------------------------------------
 in this case,

 {{{
 Foo.objects.filter(name__startswith="peter")[:10]
 }}}

 Performance is optimized by SQL.
 but in this case,

 {{{
 get_list_or_404(Foo, name__startswith="peter")[:10]
 }}}

 This slice is done by Python.
 This is proformance issue.

 Is it possible shortcuts can do slice by SQL ?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7854>
Django Code <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