I found a problem (both in h2-1.4.197 or h2-1.4.196): 

SQL1 and SQL2 should be the same result, 
but SQL1 make CPU 100% and seems blocked forever. 
while SQL1 runs OK. 
The database size is about 100MB and memory for H2 is 4GB,  both Table A 
and B has about 20,000+ records. 

My question is : "Is this a common problem for most Databases or just on 
H2? Does H2 miss some optimization?" 


SQL1 
select a.* from a , b 
where a.text=? and b.text=? and b.key=a.fkey 

SQL2 
select * from a 
where  a.text=? and a.fkey in (select b.key from b where b.text=?) 


Thank you. 

--- 

Neoe 

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to