0
IN or OR, Which one has better performance?
5 Answers
+ 2
IN's performance will be much better than or because IN fetches all the records simultaneously but OR will apply filters one by one.
0
I think IN. Because it will be easy to render from single line than from one by one. And for us, it's easy to maintain and understand
0
Remember use the simbols "(" and ")" when you use IN and OR, they are very useful
0
IN is better when you have multiple values to check while OR is used for one or two values as it can make a query full of redundant syntax
0
IN