There are two things that would have speeded that up.
1. Index firstpostid in the thread table (remove it again afterwards if you wanted).
2. Remove the thread.threadprefix !='' - you already did that in the first query - so although it means all your titles would be updated, they would all be correct, and you would have removed a "where" clause thats slowing down the query.
|