KX reference says #1 should be faster than #2.
q)select from t where c2>15,c3<3.0
q)select from t where (c2>15) and c3<3.0
In the first example, only c3 values corresponding to c2 values greater than 15 are tested.
In the second example, all c2 values are compared to 15, and all c3 values are compared to 3.0. The two result vectors are ANDed together.
---
However, I noticed the contrary is true in my example below. Am I missing something?
N:100000000;
t:([]a:N?1000;b:N?1000;c:N?1000)
\t select from t where a>500,b>500; / ~500ms
\t select from t where (a>500) and b>500; / ~390ms