[Spanner] GrpcTransport is created five times per request #1851
Labels
api: spanner
Issues related to the Spanner API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Hi,
I found that
GrpcTransport
is created five times per request.According to my research,
GrpcTransport::__construct
is called from the following file:https://github.com/googleapis/google-cloud-php/blob/master/Spanner/src/Connection/Grpc.php#L174
Google\Cloud\Spanner\Connection\Grpc::__construct
creates the following fourGrpcTransport
instances for each call:Since web applications to be exposed to users do not require InstanceAdmin Client or DatabaseAdmin Client, generating these five transports may be a waste of work.
What do you think?
The text was updated successfully, but these errors were encountered: