Raise connection pool for db

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2023-01-05 14:31:30 +05:30
parent eb28ca0878
commit 478e89b140
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5
2 changed files with 4 additions and 4 deletions

View file

@ -4,9 +4,9 @@ RUN apk update && apk add git \
build-base \ build-base \
curl \ curl \
bash \ bash \
openssl3 \ openssl \
openssl3-dev \ openssl-dev \
openssl3-libs-static \ openssl-libs-static \
sqlite-dev \ sqlite-dev \
sqlite-static sqlite-static

View file

@ -48,7 +48,7 @@ var GroupMedia = initTable[int, string]()
let AdminID = getEnv("ADMIN_ID").split(",") let AdminID = getEnv("ADMIN_ID").split(",")
let dbConn* = getDb() let dbConn* = getDb()
var connPool = newPool[DbConn](15) var connPool = newPool[DbConn](100)
# Functions to assist adding/deleting entries from tables # Functions to assist adding/deleting entries from tables
func NewCensoredData*(ftype = ""; fhash = ""; fileid = ""; time = 0.0; caption = ""): func NewCensoredData*(ftype = ""; fhash = ""; fileid = ""; time = 0.0; caption = ""):