Login
Sign Up For Free
English
中文 (繁體)
中文 (香港)
中文 (简体)
日本語
Filipino
Bahasa Indonesia
Bahasa Melayu
Pусский
Português (Brasil)
Magyar
Français
Español
Deutsch
Čeština
العربية
Català
Dansk
Ελληνικά
فارسی
Suomi
Gaeilge
Hindi
עברית
Hrvatski
Italiano
Norsk bokmål
Nederlands
한국어
Polski
Română
Slovenský
Svenska
Türkçe
українська
беларуская
ไทย
Standard view
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
delete
reply
edit
cancel
cancel