There's a similar question here, but my doubt is slight different:
select *
from process a inner join subprocess b on a.id=b.id and a.field=true
and b.field=true
So, when using inner join
, which operation comes first: the join or the a.field=true
condition?
As the two tables are very big, my goal is to filter table process
first and after that join only the rows filtered with table subprocess
.
Which is the best approach?