Skip to content

Document how to re-use connections #2208

Closed
@jgeewax

Description

@jgeewax

From a customer:

All of the docs seem to create one client per query. Most projects which use datastore will want some form of concurrency. The docs don’t provide any guidance or support for connection pooling, or what is inexpensive v.s expensive, e.g. what actually involves RPC. From my reading of logs, it looked like the first call to fetch makes an HTTP call to auth, and later calls are just an RPC. Unclear if there is any connection re-use, or the best practice from a performance perspective.

Ideally we have some standard pattern where you create a client and perhaps import that client from elsewhere, reusing it for queries?

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions