![]() |
Optimizing this SQL query - please help
Can you guys help me optimize this SQL query? It basically pulls out the latest ten threads with the condition that they are meant for the frontpage (custom column 'thread.frontpage' set to 1).
Code:
SELECT SQL_CACHE Code:
id select_type table type possible_keys key key_len ref rows Extra Current indices: Code:
Keyname Type Cardinality Field Basically I would prevent the query from going through all existing thread rows. If it's not possible to optimize this query, perhaps two more simple queries could do the trick? Thanks! |
If its in a where clause or a join clause, it should be indexed.
which is to say, all of these thread.firstpostid post.postid forum.forumid thread.forumid thread.uploadid editcp_uploads.id) thread.frontpage thread.visible post.visible thread.open thread.dateline |
All times are GMT. The time now is 04:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|