Comments - Index Hints: How to Force Query Plans
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
STRAIGHT_JOIN behaves as an INNER JOIN, afaict. (The MySQL and Maria manuals seem not to mention this.)
So adding it to a query, as described in this article, might change the meaning of the query and not just the plan.
Iow, take care! Using STRAIGHT_JOIN might change your query from an implicit LEFT JOIN to an implicit INNER JOIN.
https://gist.github.com/tom--/893e62688b69014e09ba1602c8dc52bf