3 ms·
Setting MaxIdleConns to be the same as MaxOpenConns isn't sufficient? https://pkg.go.dev/database/sql#DB.SetMaxIdleConns https://pkg.go.dev/database/sql#DB.Set
by derekperkins 4y ago
Setting MaxIdleConns to be the same as MaxOpenConns isn't sufficient?
https://pkg.go.dev/database/sql#DB.SetMaxIdleConns https://pkg.go.dev/database/sql#DB.SetMaxIdleConns
Otherwise, I guess you'd have to poll DBStats and run dummy queries to keep the pool full.
https://pkg.go.dev/database/sql#DBStats https://pkg.go.dev/database/sql#DBStats