#12763: Record matching ORM statement in connection.queries for debugging
--------------------------------------------+-------------------------------
Reporter: camillo | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Keywords: orm debug sql | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------------------+-------------------------------
As described in the [http://docs.djangoproject.com/en/1.1/faq/models/#faq-
see-raw-sql-queries documentation], when DEBUG is true every query that is
executed is recorded in django.db.connection.queries. Currently, the raw
SQL and the execution time are recorded. It would be useful if the ORM
invocation that triggered the execution of the query were also recorded.
This would be particularly helpful with views that trigger a large number
of query, especially when you have many similar or identical queries and
you are trying to find the best places to use select_related or other
optimizations.
--
Ticket URL: <http://code.djangoproject.com/ticket/12763>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.