GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Document how to re-use connections · Issue #2208 · googleapis/google-cloud-python

Document how to re-use connections #2208

New issue
Copy link
New issue
Copy link
Closed
Closed
Document how to re-use connections#2208
Copy link
Assignees
theacodes
Labels
api: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@jgeewax
jgeewax
opened on Aug 26, 2016
Issue body actions

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?

Activity

  1. jgeewax
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: datastoreIssues related to the Datastore API.
    docs
    on Aug 26, 2016
  2. tseaver commented on Aug 26, 2016

    @tseaver
    tseaver
    on Aug 26, 2016
    Contributor
    More actions

    @jgeewax Right now, we don't support sharing a client between threads. See #926, #1214, #1346. #2160 talks about making it easier to copy a client for use in a new thread. Clients are just lightweight wrappers around their connection objects, which means that keeping a separate instance per thread is quite workable.

    I don't know that there is anything datastore-specific about the issue.

  3. theacodes commented on Dec 2, 2016

    @theacodes
    theacodes
    on Dec 2, 2016
    Contributor
    More actions

    Discussion about making our HTTP library (and this connections) thread safe is over at #1346. Closing this issue.

  4. theacodes
    closed this as completedon Dec 2, 2016
  5. JustinBeckwith
    assigned
    theacodes
    on Feb 1, 2021
  6. parthea
    added a commit that references this issue on Sep 22, 2023

    docs: add samples from python-docs-samples/tasks (#36)

    19a15ff
  7. parthea
    added 2 commits that reference this issue on Apr 1, 2026

    refactor: update geo "spec" and split geo ops in ibis compiler (#2208)

    22594e7

    docs: update notebook for JSON subfields support in to_pandas_batches…

    b463e43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @theacodes
    theacodes

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.