0
votes

I have a play framework application that uses H2 Database. In general, the application have several scheduled "Jobs" that inserts data into the database (From an external Firebird database), and a controller layer that presents the stored data to the user in xml format via get requests.

My question is, while there is a job inserting data into the database, even just a few lines, the database seems to be unresponsive until the insert operation is complete. (Select queries are waiting until the other operation completes).

i am using standart Play Framework H2 connection string with "MVCC=TRUE" addition.

btw. The server is running on windows platform + Apache Tomcat server.

Is there any additional parameters or settings that i can do to get over this "unresponsiveness" problem ?

1
How long does the insert operation take? Usually, inserts are very fast with the H2 database, so it should not be a problem. - Thomas Mueller

1 Answers

2
votes

By default, H2 serialized the statements. You have multiple options: