15 seconds, 8 MySQL 7 PHP
.24 seconds, threadid,sticky,lastpost - used PRIMARY threadid
seems the problem is somewhere before the end of global.php, which basically means before the current script has started executing.
A nice 5.9 second query. Might be making the tag cloud, there's a lot about tags and it's not hitting any indexes against your 24,274 row thread table. This isn't VaultWiki.
Another 2.3 seconds spent on a weird query to vault_revision, subquerying it, and returning all 32,000 rows before deciding on 0 of up to 10 of them. As I suggested in another thread, this query for your recent edits block is a problem.
If you're intent on returning every row, you should be getting only 15,000, instead of the total 43,000 the old query made.
Use this method:
Code:
FROM vb3_vault_article AS article
LEFT JOIN vb3_vault_revision AS revision ON (revision.threadid = article.threadid AND revision.dateline = article.lastmodified)
LEFT JOIN vb3_thread AS thread ... etc etc etc
Then you don't even need to subquery or GROUP BY.
Bookmarks