java - HSQLDB is eating all my memory -
i'm using hsqldb application stores research data , there quite lot of data. hsqldb insists on loading tables memory. i've tried fixing setting hsqldb.default_table_type=cached in persistence.xml not work.
is wrong place?
persistence.xml
<persistence-unit name="dvh db" transaction-type="resource_local"> <class>com.willcodejavaforfood.dvh.entity.patient</class> <class>com.willcodejavaforfood.dvh.entity.plan</class> <class>com.willcodejavaforfood.dvh.entity.dvh</class> <class>com.willcodejavaforfood.dvh.entity.importsession</class> <class>com.willcodejavaforfood.dvh.entity.project</class> <class>com.willcodejavaforfood.dvh.entity.course</class> <class>com.willcodejavaforfood.dvh.entity.property</class> <properties> <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:./mydvhdb"/> <property name="javax.persistence.jdbc.user" value="sa"/> <property name="javax.persistence.jdbc.password" value=""/> <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcdriver"/> <property name="hibernate.dialect" value="org.hibernate.dialect.hsqldialect" /> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> <property name="hsqldb.default_table_type" value="cached" /> </properties> </persistence-unit>
when hsqldb database created can see in properties file:
hsqldb.default_table_type=memory
thanks
could try putting hsqldb.default_table_type=cached
in connection string? this: jdbc:hsqldb:./mydvhdb;hsqldb.default_table_type=cached
Comments
Post a Comment