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/35264Reviewed-by: Russ Cox <rsc@golang.org>
Showing
Please register or sign in to comment