RSSAmplifier

Alex Edwards · Feb 5, 2018

Configuring sql.DB for better performance

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

There are a lot of good tutorials which talk about Go's sql.DB type and how to use it to execute SQL database queries and statements. But most of them gloss over the SetMaxOpenConns() , SetMaxIdleConns() and SetConnMaxLifetime() methods — which you can use to configure the behavior of sql.DB and alter its performance. In this post I'd like to explain exactly what these settings do and…

Read on alexedwards.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.