![]() |
slow query for thread.forumid. help me optimize
This query is slow (0.15 seconds) despite of having indexes everywhere.
Code:
SELECT SQL_NO_CACHE post.postid Code:
SELECT SQL_NO_CACHE post.postid Code:
SELECT SQL_NO_CACHE post.postid Found the solution. This is extremely fast. The forumid restriction in the inner join thread seems to be very good. Code:
SELECT SQL_NO_CACHE post.postid |
Glad you found the solution. Before you were selecting all threads and then applying the forumid restriction!
Happy coding. p.s. you don't need those parenthesis for the on clause, in case you didn't know. |
All times are GMT. The time now is 01:13 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:
|