Well, I'll tell you this from my experience with MySQL... Joomla's queries (from the core), are pretty well tuned. Take a look at
http://dev.mysql.com/doc/refman/5.0/en/explain.html. Turn on debuging, and you'll get a list of every query that's run. Then just put explain infront of it and run it. To see the table details, use
http://dev.mysql.com/doc/refman/5.0/en/describe.html. From my experience, the only inefficient queries are done via OpenSEF (or any SEF component for that matter). Add these to lines under [mysqld] in my.cnf to log slow queries (will log all queries that take more than 1 second to execute.
| Code: |
log-slow-queries
long_query_time = 1
|
The more common problem is not the queries themselves, but the number of them. The best thing to tweak is the number of queries that are run...