13.3.2012 17:09, Javier Guerra Giraldez kirjoitti:
On Tue, Mar 13, 2012 at 9:55 AM, Phanounou<[email protected]>  wrote:
I installed the django_debug_toolbar and I see that in the sql part I have
1852 queries in 18228.00ms.

great, so this is indeed the problem.

which page is this?, the listing or the edit page?  check the SQL
code, which tables is it accessing?

if this happens on the edit page, it might be when constructing the
select elements.  how does the __unicode__ of the related models look
like?


Also if this happens on edit page, those dropdowns and multiselect lists get's populated from foreignkey / m2m tables which might create quite lot of data.

I had fun times with my customer foreignkey to address model with 21 million rows in address... :)

--

Jani Tiainen

--
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