FirstMatch Strategy
FirstMatch is a semi-join execution strategy that avoids duplicate results by short-cutting subquery execution as soon as the first matching record is found, improving performance.
The Idea
SELECT * FROM Country
WHERE Country.code IN (SELECT City.Country
FROM City
WHERE City.Population > 1*1000*1000)
AND Country.continent='Europe'

FirstMatch in Action
Difference between FirstMatch and IN->EXISTS
FirstMatch Factsheet
See Also
Last updated
Was this helpful?

