I found an N+1 query by inspecting the code of a management command that 
was running every 10 minutes, and it made me think, it would be good to 
have an option similar to 
https://django-debug-toolbar.readthedocs.org/en/1.0/commands.html#debugsqlshell 
for management commands in general.

If there interest in this, I'll look into what it would take to factor out 
the functionality of debugsqlshell into a --debug-sql (or whatever name) 
argument that could be passed to management commands in general.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c1a6ac31-ccd8-412a-ac9c-cd1f96f3a477%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to