CQEngine with standard query is very fast. However I found a particular query which is very slow using Or
The following query produces result, but is very slow.
Or(Equal(bucket, 3),Equal(bucket, 4), Equal(bucket, 5))
My data that match the above query is only 94 records but when I profile during iterating the ResultSet, it took around 300 milliseconds.
The reason I said it is slow is because I have another query which only has Equal(bucket, 6) with a few thousands records matching it, but iterating the ResultSet only takes tens of microseconds.
Anyone experiencing the same?
Does using In query perform faster?
Cheers,
Wins