I think it would be useful to be able to log all queries and/or some "slow" subset of queries in production (DEBUG=False). I understand clearly the reasoning why queries are currently only logged in debug mode, but not all problems crop up in debug mode. This does duplicate some functionality of RDBMSs but aggregating queries across multiple databases is really convenient rather than having to go to each database's logs.
More concrete proposal: - logging queries is disabled by default in production - add an option to log all queries (CursorTimingWrapper?) - add an option to log "slow" queries with a warning - neither of these will populate BaseDatabaseWrapper.queries -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.