Analytics: Report on highly used queries/actions

By Gonçalo Borrêga on 13 May 2010
Create a report that shows how many times, per request, a query is done. The slow query report is a valuable one, but we could extend it to find those queries that do not take long to run (less than the 200ms range) but are executed several times per request (inside a foreach for instance)
Maybe even being able to state, per query or action, that metrics should be collected, and a report could be generated showing that that action/query, runs in average X times per request, with an average time of Y