QueryerContext interface and prepared statements
surki opened this issue · 1 comments
surki commented
If we don't implement QueryerContext or Queryer interface for connection, db.Query() will always do statement "prepare" and statement "exec". These extra roundtrips can add unneeded latency.
Run this test program and check in wireshark: https://play.golang.org/p/wvmsGliLPpz
A change like this fixes this: surki@98e9bd8
I could send a PR if you would like this fixed here
qustavo commented
Cool, please open the PR