You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to insert about 40 thousant inserts using mysql but the time is really high.
Using the normal method without pool it execute in 50 seconds.
Using the pool it takes around 5 minutes.
Thats how i'm using the pool:
HikariConfig config = new HikariConfig();
HikariDataSource dataSource;
config.setJdbcUrl("jdbc:mysql://localhost:3306/test");
config.setUsername("root");
config.setPassword("root");
config.addDataSourceProperty("cachePrepStmts", "true");
config.addDataSourceProperty("prepStmtCacheSize", "250");
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
config.setMaximumPoolSize(10); // I have tried 10, 50, 100;
dataSource = new HikariDataSource(config);
I'm trying to insert about 40 thousant inserts using mysql but the time is really high.
Using the normal method without pool it execute in 50 seconds.
Using the pool it takes around 5 minutes.
Thats how i'm using the pool:
I also tried the code below with the same result:
Whats wrong???
The text was updated successfully, but these errors were encountered: