Search code examples
google-cloud-platformgoogle-cloud-spanner

Google Spanner multiple queries in one round trip


Is it possible to execute multiple queries against the Google Spanner in on round trip?

For example, I would like to run the following two queries in one round trip: (From performance concerns)

select * from Test1;

select * from Test2;

Solution

  • No, not in a single request. Current batching support is only for writes. Instead, send the 2 requests in parallel on separate requests.