max open connections and Set Max Idle Conns
connection.SetMaxIdleConns(100) connection.SetMaxOpenConns(5000) duration := 3 * 24 * time.Hour connection.SetConnMaxLifetime(duration)
Showing
Please register or sign in to comment
connection.SetMaxIdleConns(100) connection.SetMaxOpenConns(5000) duration := 3 * 24 * time.Hour connection.SetConnMaxLifetime(duration)