5
Araştırma verilerini saklayan bir uygulama için bir HSQLDB kullanıyorum ve oldukça fazla veri var. HSQLDB, tabloları her zaman belleğe yüklemekte ısrar ediyor. Kalıcılık.xmlimde hsqldb.default_table_type = önbelleğe alınmış olarak ayarlamayı denedim ancak bu çalışmaz.HSQLDB tüm belleği yiyor
Bu yer yanlış mı?
persistence.xml
benim HSQLDB veritabanı ben özelliklerinde görebilirsiniz oluşturulur<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>
file:
hsqldb.default_table_type=memory
Teşekkür
Ben hibernate.connection.hsqldb.default_table_type özelliğini kullanarak sona erdi, ama bu yüzden kredi almak istediğiniz anlamına geliyor sanırım :) – willcodejavaforfood
@willcodejavaforfood Thanks :) –