storage: use interpolateParams to reduce Cloud SQL roundtrips

The MySQL protocol and database/sql require several round-trips to
execute queries with placeholders. Setting interpolateParams will
cause the mysql client library to interpolate the arguments and issue
a single string query to the server, reducing the number of round
trips. See
https://www.vividcortex.com/blog/2014/11/19/analyzing-prepared-statement-performance-with-vividcortex/

Change-Id: I766d593e9981c7ce2fbb1b48fe919ab46699416c
Reviewed-on: https://go-review.googlesource.com/35264
Reviewed-by: Russ Cox <rsc@golang.org>
3 files changed
tree: b8e4f2e2d410e59dbefb75787eee124ca41779d9
  1. cmd/
  2. storage/
  3. AUTHORS
  4. CONTRIBUTING.md
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. README