Refactor for benchmarking

This commit is contained in:
2023-06-01 13:57:35 +02:00
parent 0a472d2b39
commit 012b131b23
5 changed files with 175 additions and 31 deletions

View File

@@ -37,8 +37,8 @@ func Connect(driver string, db string) {
dbConnOnce.Do(func() {
opts := DatabaseOptions{
URL: db,
MaxOpenConnections: 5,
MaxIdleConnections: 5,
MaxOpenConnections: 4,
MaxIdleConnections: 4,
ConnectionMaxLifetime: time.Hour,
ConnectionMaxIdleTime: time.Hour,
}