Hacker News new | ask | show | jobs
by Diederich 3225 days ago
> 4. database/sql reuse of cached statements

!! that wasn't a thing until now?

2 comments

It was. That summary is a bit of a simplification.

See https://golang.org/doc/go1.9#database/sql

Go 1.9 adds reuse of statement handles created off an ephemeral transaction too. But all the other statement handle cases have cached from day 1.

You could do it manually but it want automatic.