3 ms·
If a simple delete call is generating more than one query, it's either oddly customized or you have a ton of related models which need to be updated to adjust t
by acdha 14y ago
If a simple delete call is generating more than one query, it's either oddly customized or you have a ton of related models which need to be updated to adjust the cascade behavior:
https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.delete https://docs.djangoproject.com/en/dev/ref/models/querysets/#...
“No, not cached loader, not slow filesystem. It's a for with an inner include.”
With a lot of loops - again, not common for most web apps (who wants a 5mb HTML page?). You should be able to avoid this by using a custom template tag to load once and render many times.