PostgreSQL: update config & connection pool
This commit is contained in:
parent
a89a9776c3
commit
e2de88b25b
3 changed files with 4 additions and 4 deletions
|
|
@ -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{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue