Commit Graph

5 Commits

Author SHA1 Message Date
Adhityaa Chandrasekar
9f14a9389c api: add MAX_IDLE_PG_CONNECTIONS config variable
This allows lib/pq to maintain that many idle connections to the
PostgreSQL server. The larger the number the better, but obviously, your
machine needs to be capable to maintain that many connections.

Closes https://gitlab.com/commento/commento-ce/issues/76
2018-08-17 00:22:38 +05:30
Adhityaa Chandrasekar
58c011030e api: rename connectDB 2018-07-24 12:20:14 +05:30
Adhityaa
1e73c980ef api: run go fmt 2018-06-20 09:20:14 +05:30
Adhityaa
510257fd8b api: retry database connection if it fails
Closes https://gitlab.com/commento/commento-ce/issues/52
2018-06-20 09:19:39 +05:30
Adhityaa
a090770b73 api: Add go files
I know this is a huge commit, but I can't be bothered to check
this in part by part.
2018-05-27 23:40:46 +05:30