Skip to content

Commit

Permalink
Set pool size to one
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Dec 29, 2024
1 parent 610a22a commit 214bcee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public static SessionFactory forSqlite(Path dbFile) {
configuration.setProperty("hibernate.dialect", "org.hibernate.community.dialect.SQLiteDialect");
configuration.setProperty("hibernate.connection.driver_class", "org.sqlite.JDBC");
configuration.setProperty("hibernate.connection.url", "jdbc:sqlite:" + dbFile.toString());
configuration.setProperty("hibernate.connection.pool_size", 10);
configuration.setProperty("hibernate.connection.pool_size", 1);
configuration.setProperty("hibernate.show_sql", true);
configuration.setProperty("hibernate.hbm2ddl.auto", "update");
configuration.setProperty("hibernate.hikari.minimumIdle", 5);
configuration.setProperty("hibernate.hikari.maximumPoolSize", 20);
configuration.setProperty("hibernate.hikari.maximumPoolSize", 1);
configuration.setProperty("hibernate.hikari.idleTimeout", 30000);
configuration.setProperty("hibernate.hikari.connectionTimeout", 30000);

Expand Down

0 comments on commit 214bcee

Please sign in to comment.