Skip to content

Commit ec15c25

Browse files
authored
chore: enable client-side statement cache (#1496)
1 parent 091170b commit ec15c25

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/com/google/cloud/spanner/jdbc/JdbcDriver.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ public Connection connect(String url, Properties info) throws SQLException {
191191
if (matcher.matches()) {
192192
// strip 'jdbc:' from the URL, add any extra properties and pass on to the generic
193193
// Connection API
194-
// TODO: Remove when statement cache should be enabled by default.
195-
System.setProperty("spanner.statement_cache_size_mb", "0");
196194
String connectionUri = appendPropertiesToUrl(url.substring(5), info);
197195
ConnectionOptions options = ConnectionOptions.newBuilder().setUri(connectionUri).build();
198196
JdbcConnection connection = new JdbcConnection(url, options);

0 commit comments

Comments
 (0)