Any ideas for persisting H2 Database In-Memory mode transaction?

≡放荡痞女 提交于 2019-12-03 17:10:23

You could use the persistent mode with a large cache. With 'large' I mean so that the whole database fits in memory. That way even table scans will not read from disk.

To persist an in-memory database, you could use the SCRIPT command, but you need to execute it manually.

It is not that much difficult just do follow my below code change

Please do change spring.datasource.url=jdbc:h2:~/test;MVCC=true;DB_CLOSE_DELAY=-1;MODE=Oracle this will create a test data file in local system C:\Users\yourname .. here test.mv file will create

I hope it may help you

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!