Keep one connection in the DB pool.

For H2, this ensures we're not constantly closing and reopening the DB.
This commit is contained in:
akwizgran
2022-04-08 16:06:35 +01:00
parent 47d412dd0a
commit edd270abf3

View File

@@ -106,7 +106,7 @@ abstract class JdbcDatabase implements Database<Connection> {
/**
* The maximum number of idle connections to keep open.
*/
private static final int MAX_CONNECTION_POOL_SIZE = 10;
private static final int MAX_CONNECTION_POOL_SIZE = 1;
// Time period offsets for incoming transport keys
private static final int OFFSET_PREV = -1;