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 — Support ReadOptions in v1beta3 · Issue #637 · googleapis/google-cloud-java

Support ReadOptions in v1beta3 #637

New issue
Copy link
New issue
Copy link
Closed
Closed
Support ReadOptions in v1beta3#637
Copy link
Assignees
ajkannan
Labels
api: datastoreIssues related to the Datastore API.

Description

@ajkannan
ajkannan
opened on Feb 10, 2016
Issue body actions

Read options for lookups and queries should be disabled within transactions. Transaction options should only be available when creating a new transaction.

Activity

  1. ajkannan
    added
    api: datastoreIssues related to the Datastore API.
    on Feb 10, 2016
  2. ajkannan
    self-assigned this
    on Feb 10, 2016
  3. ajkannan
    changed the title [-]Support eventually consisent lookups and queries.[/-] [+]Support ReadOptions and TransactionOptions in v1beta3[/+] on Feb 17, 2016
  4. ajkannan commented on Feb 17, 2016

    @ajkannan
    ajkannan
    on Feb 17, 2016
    Author
    More actions

    Disabling read options from within a transaction is a bit challenging because the Datastore and Transaction interfaces both inherit DatastoreReaderWriter. Two ways to solve this to include:

    1. Setting read options when creating a Datastore service object. (If users want some actions to use eventual consistency and others to use the default level of consistency, then they could create two service objects).
    2. Including varargs read options for lookup/query methods in the Datastore interface, but throwing an exception at runtime if a user attempts to set read options from within a transaction.

    Any opinions/suggestions @aozarov @pcostell?

  5. aozarov commented on Feb 17, 2016

    @aozarov
    aozarov
    on Feb 17, 2016
    Contributor
    More actions

    We should also consider this option:

    • Add read-only to TransactionOption
    • Add a new ReadOptions class that only includes ReadConsistency settings.
    • Add only to the Datastore interface get and run(Query) methods that accept ReadOptions
    • Modify Datastore implementation for runInTransaction to defer transaction creating until the first lookup or query and if none use CommitRequest with TransactionOptions
  6. pcostell commented on Feb 17, 2016

    @pcostell
    pcostell
    on Feb 17, 2016
    Contributor
    More actions

    I agree with Arie's proposal --

    transaction options can be made available to the user at the call to runInTransaction or newTransaction. There isn't a need to expose TransactionOptions directly on get and runQuery calls because it's effectively an optimization that runInTransaction should take advantage of to avoid the call to beginTransaction.

  7. ajkannan commented on Feb 26, 2016

    @ajkannan
    ajkannan
    on Feb 26, 2016
    Author
    More actions

    Since transaction options are coming in a later release of v1beta3, I will create a separate issue for transaction options and keep this issue for read options.

  8. ajkannan
    changed the title [-]Support ReadOptions and TransactionOptions in v1beta3[/-] [+]Support ReadOptions in v1beta3[/+] on Feb 26, 2016
  9. ajkannan commented on Mar 2, 2016

    @ajkannan
    ajkannan
    on Mar 2, 2016
    Author
    More actions

    Closed via #691

  10. ajkannan
    closed this as completedon Mar 2, 2016
  11. github-actions
    added a commit that references this issue on Jun 21, 2022

    chore: include generated samples dir (#637)

    9a42de5
  12. github-actions
    added a commit that references this issue on Jun 29, 2022

    chore: release 1.1.3-SNAPSHOT (googleapis#637)

    546ef0c
  13. github-actions
    added a commit that references this issue on Sep 15, 2022

    chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…

    dd2fdce
  14. suztomo
    added 2 commits that reference this issue on Feb 1, 2023

    deps: update dependency com.google.api:api-common to v2.1.5 (#637)

    e3ea211

    chore(main): release 2.0.0 (#739)

    ea9f421
  15. meltsufin
    added a commit that references this issue on Dec 22, 2025

    ci: removing linkage-monitor from the required checks (#637)

    454f528
  16. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore: release 0.122.9 (#637)

    e0df98b
  17. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(deps): update autovalue packages to v1.8.1 (#637)

    3ceac80
  18. suztomo
    added a commit that references this issue on Mar 11, 2026

    ci: removing linkage-monitor from the required checks (googleapis#637)

    37ae2c5
  19. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(deps): update autovalue packages to v1.8.1 (#637)

    216b583
  20. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    deps: update dependency com.google.cloud:google-cloud-spanner-bom to …

    c9e6214

    chore: release 2.5.0 (googleapis#643)

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

Metadata

Metadata

Assignees

  • @ajkannan
    ajkannan

Labels

api: datastoreIssues related to the Datastore API.

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.