try removing stuff from db connection settings

This commit is contained in:
Bart Akeley 2017-10-29 12:37:35 -05:00
parent 979d63d73c
commit f0cd8343a4

View file

@ -15,9 +15,9 @@
[spec]
(let [cpds (doto (ComboPooledDataSource.)
(.setDriverClass (:classname spec))
(.setJdbcUrl (str "jdbc:" (:url db-spec) "/" (:db db-spec)))
(.setUser (:user spec))
(.setPassword (:password spec))
(.setJdbcUrl (str "jdbc:" (:url db-spec)))
; (.setUser (:user spec))
; (.setPassword (:password spec))
;; expire excess connections after 30 minutes of inactivity:
(.setMaxIdleTimeExcessConnections (* 30 60))
;; expire connections after 3 hours of inactivity: