On 2/18/07, VIK_Tomas <[EMAIL PROTECTED]> wrote:
>
> >
> > http://www.djangoproject.com/documentation/model_api/#list-select-related
> >
>
> a try add
>
>    class Admin:
>       list_select_related = True
>
> to all models, but it has no effect - "Edit Action" is still very
> slow.
>
> with this option in all models:  3598 queries
> without this option: 3598 queries
>
>  -- problem is editing "Action" page, where is a "photo list"
>     and I need select list of photos AS " SELECT ... photo JOIN album
> " instead of many queries
>     because Photo.__str__() looks uses photo.album....

that's odd can you post your Model definition?
>
>
> >
>


-- 
Honza Kr�l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to