Hi,
I have quite a few slow queries taking place, of this form:
Now I realize those are performed to display the threads to which these posts belong, but is there no solution to the huge number of rows the query has to go to?
133,000 rows out of around 750,000 is quite a lot, and those queries are really killing my server (which is a bit underpowered, granted).
Ideas, anyone?
Regards,
Omer
I have quite a few slow queries taking place, of this form:
Code:
# Time: 051029 15:27:31 # User@Host: vb_user[vb_user] @ localhost [] # Query_time: 43 Lock_time: 0 Rows_sent: 67962 Rows_examined: 138668 SELECT post.postid, post.threadid FROM post AS post INNER JOIN thread AS thread ON(thread.threadid = post.threadid) LEFT JOIN deletionlog AS delpost ON(delpost.primaryid = post.postid AND delpost.type = 'post') WHERE post.postid IN(3,10,28,56,57,73,79,98,103.....) AND delpost.primaryid IS NULL AND post.visible = 1;
133,000 rows out of around 750,000 is quite a lot, and those queries are really killing my server (which is a bit underpowered, granted).
Ideas, anyone?
Regards,
Omer
Comment