I had a look at this.
Firstly - please note - I am not a database guy!!
That being said, I did some tests and found that adding an index to thread.vbookie_item_id reduced the query time on my test site from 15 seconds to 0.0010 seconds.
Quote:
ALTER TABLE `thread` ADD INDEX ( `vbookie_item_id` )
|
edit: Just re-read boggseric's post and adding the above index was his original suggestion. I made (and unmade) several changes before coming to this one change which does indeed speed things up!