Thomas, I'm afraid I've found another query where IN does not use the
index, but OR does (using build 1.2.130):

<10ms:
SELECT * FROM om WHERE
(b=26 OR b=27)
AND numval = 468203

But ~2000ms:
SELECT * FROM om WHERE
b IN (26,27)
AND numval = 468203

where 'numval' is a indexed double type (which I recently added)...

If I remove either of the AND conditions, the speed query again
executes very fast...

Let me know if you need a profiler output..

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to