I hate MySQL/MariaDB voodoo. I moved a JOIN from one spot in a query to further down the list, and sped up a query from 10 minutes to 0.2 seconds, but only for one user. It was already fast for most users, but for this user, it couldn’t figure out what index to use for a a separate JOIN with the previous arrangement. Total voodoo.
=> More informations about this toot | More toots from karptonite@mstdn.social
@karptonite FORCE INDEX can be used to instruct the query planner to not be dumb. Very useful in high-load environments.
=> More informations about this toot | More toots from kboyd@phpc.social
@kboyd I tried USE INDEX but not force. Maybe I’ll see if that would have worked.
=> More informations about this toot | More toots from karptonite@mstdn.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini