-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Using protobuf CommitRequest in datastore Connection.commit. #1341
Using protobuf CommitRequest in datastore Connection.commit. #1341
Conversation
@@ -312,6 +312,7 @@ def commit(self, dataset_id, mutation_pb, transaction_id): | |||
that was completed in the commit. | |||
""" | |||
request = _datastore_pb2.CommitRequest() | |||
request.CopyFrom(commit_request) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
It makes me queasy to think about reusing a batch or a transaction. If somebody wanted to examine the |
This is towards googleapis#1288 in preparation for the upgrade to `v1beta3`. In particular, a single `Mutation` protobuf instance in `v1beta3` is not sufficient to contain all changes to be committed, so we use the container that is up one level in the hierarchy.
a1194f5
to
7f1b786
Compare
OK. Should I file an issue to move the tombstone behavior into PS I just rebased, had a merge issue. |
I think we could just open an issue and go on. |
LGTY to merge? |
Filed #1366 |
LGTM |
Using protobuf CommitRequest in datastore Connection.commit.
This is towards #1288 in preparation for the upgrade to
v1beta3
. In particular, a singleMutation
protobuf instance inv1beta3
is not sufficient to contain all changes to be committed, so we use the container that is up one level in the hierarchy.