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

Commit transaction on last write operation #72

Open
lavrukov opened this issue May 27, 2024 · 0 comments
Open

Commit transaction on last write operation #72

lavrukov opened this issue May 27, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@lavrukov
Copy link
Contributor

https://github.com/ydb-platform/ydb-java-sdk/blob/develop/table/src/main/java/tech/ydb/table/transaction/TableTransaction.java#L36

The YDB SDK has a feature in TableTransaction where we can commit a transaction in one query with executeDataQuery. This can save time on network communication if we send this flag instead of a separate commit. For read queries, we can't determine if the query is the last in the transaction or not. However, we have a queue for write queries that executes at the end of user-code transactions, and in this case, we know which query is the last.

@lavrukov lavrukov added the feature New feature or request label May 27, 2024
@lavrukov lavrukov self-assigned this May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant