PostgreSQL: update config & connection pool

This commit is contained in:
William Bouzourène 2025-05-13 13:04:58 +02:00
parent a89a9776c3
commit e2de88b25b
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
3 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,8 @@ func GetDatabase() (*gorm.DB, error) {
return database, err
}
db.SetMaxOpenConns(1)
db.SetMaxIdleConns(10)
db.SetMaxOpenConns(50)
err = database.AutoMigrate(
&models.User{},