I have a table with 5 columns, and with only one row, no any extra indexes 
and I make quite simple SQL query (SELECT * FROM foos).

This is how I run h2.
java -jar h2-1.3.176.jar
Queries are generated and executed by eclipselink 2.6.3. These are my 
settings in persistence.xml

<properties>
    <property name="eclipselink.connection-pool.default.initial" value="5"/>
    <property name="eclipselink.connection-pool.default.min" value="5"/>
    <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
    <property name="javax.persistence.jdbc.url" 
value="jdbc:h2:tcp://localhost//home/somepath;DATABASE_TO_UPPER=FALSE"/>
    <property name="javax.persistence.jdbc.user" value="sa"/>
    <property name="javax.persistence.jdbc.password" value=""/>
    <property name="eclipselink.logging.level" value="FINE"/>
    <property name="eclipselink.logging.thread" value="false"/>
    <property name="eclipselink.logging.exceptions" value="true"/>
    <property name="eclipselink.orm.throw.exceptions" value="true"/>
    <property name="eclipselink.left-join-fetch" value="true"/>
    <property name="eclipselink.weaving" value="true"/>
</properties>

So every SQL query is executed about one second(!). Besides I hear that for 
every SQL query hard drive is working hard - I think that it is H2 is 
working, but not eclipselink.

However, when I in H2 webconsole press connect to the same DB, then my java 
program works very fast. It works fast until I press disconnect in 
webconsole. How to explain this? Is this a bug or ?

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