Profiling queries with Zend_Db
Eran Galperin wrote:
Database performance is one of the major bottlenecks for most web applications. Most web developers are not database experts (and I’m no exception), there are however several basic methods to analyse and optimize database performance without resorting to expert consultants.
The first step I take when profiling database performance for a web app is to measure the running time of all the queries running in it. Absolute run time of a query is not necessarily a good measure of how optimized it is, since some queries are naturally more complex or pull more data – It will give me a good idea however of where to start improving the response time of the application I’m optimizing. My main goal is not specific query performance, but overall system performance.
Continue reading: Profiling queries with Zend_Db