tux21b has
16 years ago
troubles optimizing a silly query. 5 joins, a group by and an order by... anyone who can help? :-)
amix thinks
16 years ago
it sounds like an expensive query. anyway, make sure you have the proper indexes on tables :-)
tux21b
16 years ago
i was trying, but i can't make an index on multiple tables, so i can't remove the filesort there :-(
tux21b
16 years ago
it's about finding topics (+eagerloading of the last post, the last post author and the forum) where a post from a certain user exists
立即下載
tux21b
16 years ago
ordered by the date of the last post
amix says
16 years ago
sometimes it helps to go for de-normalization or create new tables that are optimized for certain queries