Closed ivamluz closed 5 years ago
This is a hard limit in Cloud Spanner and not configurable: https://cloud.google.com/spanner/quotas#query_limits
What you could do, if you are inserting the rows using an application you have written yourself, is to use the JDBC batching functionality. By using either Statement#addBatch(String) or PreparedStatement#addBatch(), you can batch a large number of insert statements together and send them as one batch to Spanner by calling Statement#executeBatch().
Thank you very much, @olavloite .
Just saw here that it's possible to insert multiple rows by using something like:
It seems to work fine, except when we have more than 200 rows. Then we get:
Is this a hard limit on Spanner or on the lib? If on the lib, is this configurable?