请问 bang老大 ,HSQLDB 怎么把数据持久化到硬盘或数据库中啊

09-11-16 cmzx3444
    

我现在有个项目,想把数据全部放在内存中,数据不是很多,一万条以下,所以我想用HSQLDB ,但是当数据有增,删,改的时候怎么持久化啊,是不是还要用一个数据库来专门持久化还是直接持久化到文件中啊,

还有就是HSQLDB 一般都在什么项目中适合啊,我也是刚刚开始关注内存数据库的,请bang大哥指教指教,不胜感激!!!

    

banq
2009-11-17 09:30

我也不是非常清楚,你查阅一下有关资料,HSQLDB做做产品演示DEMO还可以。

The default MEMORY type stores all data changes to the disk in the form of a SQL script. During engine start up, these commands are executed and data is reconstructed into the memory. While this behavior is not suitable for very large tables, it provides highly regarded performance benefits and is easy to debug.

cmzx3444
2009-11-17 10:06

谢谢bang老大的回答,我拿词霸去扫扫,英文确实看不大懂