Re: Django Admin generating thousands of useless SQL queries

2011-10-04 Thread Paulo VJ
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 mess

Django Admin generating thousands of useless SQL queries

2011-10-04 Thread Paulo VJ
Hello everyone, I'm building a simple application that uses only django.admin as it's interface, but I found out using two tables for the name of a single one bringing the number of SQL queries from 70 to 20.000. Am I doing this wrong? class Categoria(models.Model): categoria = models.CharFi