Attempted to solve a minor performance issue on larger datasets discovered by @jklann
I believe by moving the exists predicate to a join (subquery) tricks the optimizer into making a smarter plan. It cut runtime in half on my environment. Pull request to follow.
Attempted to solve a minor performance issue on larger datasets discovered by @jklann
I believe by moving the exists predicate to a join (subquery) tricks the optimizer into making a smarter plan. It cut runtime in half on my environment. Pull request to follow.