What are the best settings of the H2 database for high concurrency?

Posted by dexter on Stack Overflow See other posts from Stack Overflow or by dexter
Published on 2010-05-02T17:34:28Z Indexed on 2010/05/02 17:37 UTC
Read the original article Hit count: 206

Filed under:
|
|
|
|

There are a lot of settings that can be used in H2 database. AUTO_SERVER, MVCC, LOCK_MODE, FILE_LOCK and MULTI_THREADED. I wonder what combination works best for high concurrency setup e.g. one thread is doing INSERTs and another connection does some UPDATEs and SELECTs?

I tried MVCC=TRUE;LOCK_MODE=3lFILE_LOCK=NO but whenever I do some UPDATEs in one connection, the other connection does not see it even though I commit it. By the way the connections are from different processes e.g. separate program.

© Stack Overflow or respective owner

Related posts about java

Related posts about h2