1 parent f0222da commit 363cee5Copy full SHA for 363cee5
1 file changed
api/pkg/di/container.go
@@ -236,6 +236,8 @@ func (container *Container) YugaByteDB() (db *gorm.DB) {
236
}
237
238
sql.SetMaxOpenConns(7)
239
+ sql.SetMaxIdleConns(3)
240
+ sql.SetConnMaxLifetime(time.Minute * 10)
241
242
container.logger.Debug(fmt.Sprintf("Running migrations for yugabyte [%T]", db))
243
if err = db.AutoMigrate(&entities.Heartbeat{}); err != nil {
0 commit comments