开发者

In-memory Database Tables in java

开发者 https://www.devze.com 2023-03-27 03:21 出处:网络
I am totally new to Hibernate , so this question might seem so naive for someone. I am developing an application that requires in-memory tables, and writing the tables to disc only a periodic interva

I am totally new to Hibernate , so this question might seem so naive for someone.

I am developing an application that requires in-memory tables, and writing the tables to disc only a periodic intervals to reduce write operations. I could have done this using some complex datastructures, but since ultimately my data is stored in database on a disc, I am searching fo开发者_开发百科r any in-memory Database computation feature in Java. Does Hibernate allow me to do this?


It sounds like you are looking for a hypersonic / HSQL in memory database. If you use this then you can set a property called write delay that will delay the write to disk like this:

<property name="connection.writedelay">100</property>

Have a look here.


Sure, you can use Hypersonic SQL in in-memory mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消