8 ms·
That can sometimes be a solution... Just keep in mind, you are manually writing a join algorithm every time you need to do that, and sometimes it will be the ri
by Tostino 5y ago
That can sometimes be a solution... Just keep in mind, you are manually writing a join algorithm every time you need to do that, and sometimes it will be the right one for the task, other times not so much. The query planner will adapt your join type for you instead, if you can trust it.
As the shape of your data changes over time, your hard coded algorithm choice is not guaranteed to be the best one.