Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support request options in !autocommit mode #838

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

IlyaFaer
Copy link
Contributor

@IlyaFaer IlyaFaer commented Oct 7, 2022

@product-auto-label 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
Contributor Author

Choose a reason for hiding this comment

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

Request options are used only for next one request

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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 IlyaFaer marked this pull request as ready for review October 7, 2022 08:32
@IlyaFaer IlyaFaer requested review from a team as code owners October 7, 2022 08:32
@asthamohta asthamohta changed the title feat: support requiest options in !autocommit mode feat: support request options in !autocommit mode Oct 11, 2022
@IlyaFaer IlyaFaer enabled auto-merge (squash) October 13, 2022 07:20
@IlyaFaer IlyaFaer merged commit ab768e4 into googleapis:main Oct 13, 2022
@IlyaFaer IlyaFaer deleted the request_options branch October 14, 2022 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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