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.
精彩评论