Better HN
topnewbestaskshowjobs
Log inSign up

youdeet

7 karma · joined Feb 22, 2024 (2y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

One more point in the "Anti Join". Use EXISTS instead of IN and LEFT JOIN if you only want to check existence of a row in another large table / subquery based on the conditions. EXISTS returns true as soon as it has found a hit. In case of LEFT JOIN and IN engine collects all results before evaluating.