mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 05:39:53 +01:00
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:
@@ -106,7 +106,7 @@ abstract class JdbcDatabase implements Database<Connection> {
|
|||||||
/**
|
/**
|
||||||
* The maximum number of idle connections to keep open.
|
* 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
|
// Time period offsets for incoming transport keys
|
||||||
private static final int OFFSET_PREV = -1;
|
private static final int OFFSET_PREV = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user