commit | 4515b322c3a6c056dbd72315e870a3aa34725661 | [log] [tgz] |
---|---|---|
author | Quentin Smith <quentin@golang.org> | Tue Jan 17 16:07:21 2017 -0500 |
committer | Quentin Smith <quentin@golang.org> | Wed Jan 18 05:25:12 2017 +0000 |
tree | b8e4f2e2d410e59dbefb75787eee124ca41779d9 | |
parent | 590fe65ca423fc48e73a89822327c4f13f7dcea0 [diff] |
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>