On 2020-03-09 11:02:37 +0200, Achilleas Mantzios wrote:
> Fully review your programs for connection / xaction leaks. Do you use a
> connection pool?
Go's sql package encourages the use of connection pools (type DB) over
single connections (type Conn):
| Prefer running queries from DB unless there is a specific need for a
| continuous single database connection.
All tutorials I've seen follow this recommendation, so a Go programmer
might not even be aware that connections exist.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"