HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by aforty | Hacker News Reader
Full thread
aforty
·
When should you use IN instead of the OR operator?
Tl;dr;
Always.
View on HN
angry__panda
·
This is true for Postgres. But might not be true for other databases. For example, for MySQL, in some cases OR is faster than IN operator based on our experiments.
Reply on news.ycombinator.com