Open danielnorberg opened 2 weeks ago
I think the best approach to reduce initialization time would be to run the following in parallel, https://github.com/yoshidan/google-cloud-rust/blob/2f9219b17bbb9fb551ca160751c664bfba4604c5/spanner/src/session.rs#L238
Sounds reasonable. Even individual session creation requests seem slow however. I wonder why that is. I will try to reproduce using one of the offical spanner clients.
Creation of
google_cloud_spanner::client::Client
can block for several seconds on the initial session pool population.Would it make sense to defer the session pool initialization entirely to the "session creation task"?