Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. pools {
  2. default {
  3. jdbcUrl = "jdbc:mysql://localhost:3306/db?useSSL=false"
  4. username = "username"
  5. password = "password"
  6.  
  7. minimumIdle = 5
  8. maximumPoolSize = 10
  9.  
  10. autoCommit = false
  11. connectionTimeout = 300000
  12. //driverClassName = "com.mysql.jdbc.Driver" - deprecated
  13. driverClassName = "com.mysql.cj.jdbc.Driver"
  14.  
  15. cachePrepStmts = true
  16. prepStmtCacheSize = 250
  17. prepStmtCacheSqlLimit = 2048
  18.  
  19. useServerPrepStmts = true //todo ???
  20. }
  21.  
  22. // This syntax inherits the config from pools.default.
  23. // We can then override or add additional properties.
  24. transactional = ${pools.default} {
  25. poolName = "transactional"
  26. }
  27.  
  28. processing = ${pools.default} {
  29. poolName = "processing"
  30. maximumPoolSize = 30
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement