FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: support request options in !autocommit mode by IlyaFaer · Pull Request #838 · googleapis/python-spanner · GitHub

This repository was archived by the owner on Jun 8, 2026. It is now read-only.
/ python-spanner Public archive

feat: support request options in !autocommit mode - #838

Merged
IlyaFaer merged 2 commits into
googleapis:mainfrom
MaxxleLLC:request_options
Oct 13, 2022
Merged

IlyaFaer merged 2 commits into
googleapis:mainfrom
MaxxleLLC:request_options

Conversation

IlyaFaer commented Oct 7, 2022

Copy link
Copy Markdown

product-auto-label Bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/python-spanner API. labels Oct 7, 2022

req_opts = RequestOptions(priority=self.request_priority)
self.request_priority = None
return req_opts

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Request options are used only for next one request

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is there a reason for this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Spanner is designed this way, otherwise there is no sense in request options.
Let's say there is a request priority. If it'll be set for a connection/session, than all the requests will have the same priority. It's technically the same that not setting priority at all.

IlyaFaer marked this pull request as ready for review October 7, 2022 08:32
IlyaFaer requested review from a team and asthamohta October 7, 2022 08:32
asthamohta changed the title feat: support requiest options in !autocommit mode feat: support request options in !autocommit mode Oct 11, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/python-spanner API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL