|
@@ -20,15 +20,16 @@
|
|
<property name="hibernate.jdbc.batch_size" value="100" />
|
|
<property name="hibernate.jdbc.batch_size" value="100" />
|
|
|
|
|
|
<!-- Connection Pooling settings -->
|
|
<!-- Connection Pooling settings -->
|
|
- <property name="hibernate.connection.provider_class"
|
|
|
|
- value="org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider" />
|
|
|
|
-
|
|
|
|
- <property name="hibernate.c3p0.max_size" value="100" />
|
|
|
|
- <property name="hibernate.c3p0.min_size" value="0" />
|
|
|
|
- <property name="hibernate.c3p0.acquire_increment" value="1" />
|
|
|
|
- <property name="hibernate.c3p0.idle_test_period" value="300" />
|
|
|
|
- <property name="hibernate.c3p0.max_statements" value="0" />
|
|
|
|
- <property name="hibernate.c3p0.timeout" value="100" />
|
|
|
|
|
|
+ <property name="hibernate.connection.provider_class" value="org.hibernate.hikaricp.internal.HikariCPConnectionProvider" />
|
|
|
|
+ <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
|
|
|
|
+ <property name="hibernate.cache.use_query_cache" value="false" />
|
|
|
|
+ <property name="hibernate.hikari.minimumIdle" value="256" />
|
|
|
|
+ <property name="hibernate.hikari.maximumPoolSize" value="256" />
|
|
|
|
+ <property name="hibernate.hikari.idleTimeout" value="30000" />
|
|
|
|
+ <property name="hibernate.hikari.dataSourceClassName" value="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" />
|
|
|
|
+ <property name="hibernate.hikari.dataSource.url" value="jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true" />
|
|
|
|
+ <property name="hibernate.hikari.dataSource.user" value="benchmarkdbuser" />
|
|
|
|
+ <property name="hibernate.hikari.dataSource.password" value="benchmarkdbpass" />
|
|
</properties>
|
|
</properties>
|
|
</persistence-unit>
|
|
</persistence-unit>
|
|
|
|
|
|
@@ -44,15 +45,16 @@
|
|
<property name="hibernate.format_sql" value="false" />
|
|
<property name="hibernate.format_sql" value="false" />
|
|
<property name="hibernate.jdbc.batch_size" value="100" />
|
|
<property name="hibernate.jdbc.batch_size" value="100" />
|
|
<!-- Connection Pooling settings -->
|
|
<!-- Connection Pooling settings -->
|
|
- <property name="hibernate.connection.provider_class"
|
|
|
|
- value="org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider" />
|
|
|
|
-
|
|
|
|
- <property name="hibernate.c3p0.max_size" value="100" />
|
|
|
|
- <property name="hibernate.c3p0.min_size" value="0" />
|
|
|
|
- <property name="hibernate.c3p0.acquire_increment" value="1" />
|
|
|
|
- <property name="hibernate.c3p0.idle_test_period" value="300" />
|
|
|
|
- <property name="hibernate.c3p0.max_statements" value="0" />
|
|
|
|
- <property name="hibernate.c3p0.timeout" value="100" />
|
|
|
|
|
|
+ <property name="hibernate.connection.provider_class" value="org.hibernate.hikaricp.internal.HikariCPConnectionProvider" />
|
|
|
|
+ <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
|
|
|
|
+ <property name="hibernate.cache.use_query_cache" value="false" />
|
|
|
|
+ <property name="hibernate.hikari.minimumIdle" value="256" />
|
|
|
|
+ <property name="hibernate.hikari.maximumPoolSize" value="256" />
|
|
|
|
+ <property name="hibernate.hikari.idleTimeout" value="30000" />
|
|
|
|
+ <property name="hibernate.hikari.dataSourceClassName" value="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" />
|
|
|
|
+ <property name="hibernate.hikari.dataSource.url" value="jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true" />
|
|
|
|
+ <property name="hibernate.hikari.dataSource.user" value="benchmarkdbuser" />
|
|
|
|
+ <property name="hibernate.hikari.dataSource.password" value="benchmarkdbpass" />
|
|
</properties>
|
|
</properties>
|
|
</persistence-unit>
|
|
</persistence-unit>
|
|
|
|
|