A join condition combines comparisons with OR

tx0/sql:or-in-join-conditionstrictwarningperformance/algorithmicdepth fastperformance

What it finds

JOIN b ON a.x = b.x OR a.y = b.y: an OR in a join condition keeps the database from using an index or hash join for either part, so it compares every pair of rows. Two joins combined with UNION, or a rewritten model, avoid it.

From the rule's source, or_in_join_condition.rs.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/sql:or-in-join-condition" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:or-in-join-condition shows the same in the terminal. Found a false positive? Report it.