Skip to content

Instantly share code, notes, and snippets.

@matiangul
Created March 7, 2017 17:18
Show Gist options
  • Save matiangul/260a2a3fe74614313ce53077cf5efba6 to your computer and use it in GitHub Desktop.
Save matiangul/260a2a3fe74614313ce53077cf5efba6 to your computer and use it in GitHub Desktop.
Hikari Data Source configuration
val dataSource = HikariDataSource(HikariConfig(Properties().apply {
setProperty("jdbcUrl", "jdbc:mysql://localhost/rcs_parsing_challenge")
setProperty("dataSource.user", "root")
setProperty("dataSource.password", "password")
put("dataSource.cachePrepStmts", true)
put("dataSource.useServerPrepStmts", true)
put("dataSource.rewriteBatchedStatements", true)
put("maximumPoolSize", 21)
put("idleTimeout", 30000)
put("autoCommit", false)
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment