Tuesday, October 4, 2011

Re: Django Admin generating thousands of useless SQL queries

Well, I found out that even those 70 ones are mostly repeated queries for another ForeignKeyField of the model.
If I add another ForeignKey to be printed I get a whooping 43336 queries for showing 72 rows of data.
The correct queries ones seems to be limited at 6, tho.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/69vP216XFqcJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment