Hikari号称最快的连接池,这边贴一个github上找到的一个宣称最大化MySQL性能的配置文件(db.properties),供各位看官查看

  1 #inner
  2 jdbcUrl=jdbc:mysql://192.168.2.7:3306/lxd?useSSL=false
  3 username=root
  4 password=root
  5 
  6 #pool properties
  7 connectionTimeout=60000
  8 idleTimeout=600000
  9 minimumIdle=1
 10 maximumPoolSize=50
 11 #poolname
 12 
 13 
 14 
 15 #datasource properties, max performance
 16 #该项极大影响插入效率
 17 dataSource.cachePrepStmts=true
 18 dataSource.prepStmtCacheSize=250
 19 dataSource.prepStmtCacheSqlLimit=2048
 20 dataSource.useServerPrepStmts=true
 21 dataSource.useLocalSessionState=true
 22 dataSource.rewriteBatchedStatements=true
 23 dataSource.cacheResultSetMetadata=true
 24 #dataSource.cacheServerConfiguration=true
 25 #dataSource.elideSetAutoCommits=true
 26 dataSource.maintainTimeStats=false
 27 dataSource.useCursorFetch=true

相关文章:

  • 2021-06-22
  • 2022-02-23
  • 2021-05-31
  • 2021-10-18
  • 2021-11-22
  • 2021-07-23
  • 2022-12-23
猜你喜欢
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-10-04
  • 2021-11-22
相关资源
相似解决方案