Currently, IN clauses are very unoptimal in H2 (it uses a linear
search each time IN clause is evaluated).

I've implemented a very crude and hacky optimization, but it sped up
our application about 100 times :)

Basically, I check during evaluation time that if all list values are
of the same type, then I create a Session-bound HashMap and use it for
fast lookups.

-- 
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