#13871: contrib.admin:list_editable - ForeignKey performance is O(m*n)
-------------------------------------------+--------------------------------
          Reporter:  chadc                 |         Owner:  nobody             
                               
            Status:  new                   |     Milestone:                     
                               
         Component:  django.contrib.admin  |       Version:  1.2                
                               
        Resolution:                        |      Keywords:  list_editable, 
admin, ForeignKey, admin efficiency
             Stage:  Unreviewed            |     Has_patch:  0                  
                               
        Needs_docs:  0                     |   Needs_tests:  0                  
                               
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by patrys):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Keep in mind the formset is using forms that can apply additional
 filtering to the data sets thus making each choice set unique. If you want
 to introduce some sort of caching, you pretty much have to cache by
 serialized query params. Also you need to make sure the cache is thread-
 safe and does not outlive the formset (your CachedSelect does not seem to
 ever invalidate the cache).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13871#comment:1>
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-upda...@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.

Reply via email to