Skip to content

Commit

Permalink
Fix pool settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Dec 29, 2024
1 parent 3b59be3 commit b9f73c3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public static SessionFactory forSqlite(Path dbFile) {
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.minimumIdle", 1);
configuration.setProperty("hibernate.hikari.maximumPoolSize", 1);
configuration.setProperty("hibernate.hikari.idleTimeout", 30000);
configuration.setProperty("hibernate.hikari.connectionTimeout", 30000);
configuration.setProperty("hibernate.hikari.idleTimeout", 0);
configuration.setProperty("hibernate.hikari.connectionTimeout", 30_000);

var metadataSources = new MetadataSources(new StandardServiceRegistryBuilder()
.applySettings(configuration.getProperties())
Expand Down

0 comments on commit b9f73c3

Please sign in to comment.