I would like to have an easier opportunity to get the count of all dabatase queries from time X to time Y. This would make debugging and optimizing sometimes a lot easier.
My suggestion is to set a session variable as a counter and each time the developer uses the sql() or sqlValue() function the counter is increased. The developer can easily reset the counter i.e. clear it in the footer.
Right now I am adding the line
Code: Select all
$_SESSION['countSQLQueries'] ++;
Olaf