Re: contrib.admin:list_editable - ForeignKey Performance is O(m*n)?

2010-07-02 Thread chadc
Alright. I filed it as #13871 under contrib.admin because I do not understand the larger issue, but please update it as you see fit. Thanks, Jeremy. Ticket Link: http://code.djangoproject.com/ticket/13871 -- You received this message because you are subscribed to the Google Groups "Django deve

Re: contrib.admin:list_editable - ForeignKey Performance is O(m*n)?

2010-06-30 Thread chadc
the list_editable line or use the fix below ( formfield_overrides = {models.ForeignKey:{'widget': CachedSelect()}} ), the number of queries returns to O(1). The jist of what I am wondering is if the changelist is going to allow editable ForeignKeys, should it be caching the choices rather t

contrib.admin:list_editable - ForeignKey Performance is O(m*n)?

2010-06-29 Thread chadc
Hi there, I have been experiencing poor performance with django-admin when list_editable includes ForeignKey fields. In particular, rendering the changelist requires O(m*n) database queries where m is the number of ForeignKey fields included in list_editable and n is the number of rows in the chan