-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Investigate Performance implications of disabling transactions for COPY operations. #7809
Comments
psudheer21
changed the title
Investigate disabling transactions for COPY operations.
Investigate Performance implications of disabling transactions for COPY operations.
Mar 25, 2021
This new mode of writes can also be used for the LOAD stage of TPCC. |
emhna
added a commit
that referenced
this issue
Nov 30, 2021
…COPY Summary: Allowing faster writes on copy command by using session variable "yb_force_non_transactional_writes". The default value for this flag is false. To enable the flag, ``` SET yb_force_non_transactional_writes=true ``` To disable the flag, ``` SET yb_force_non_transactional_writes=false ``` Note, the session variable must be applied on non-DDL operations as non-transactional writes on DDL operations is not supported. Test Plan: Verified using non transactional flag improves latency on release build. Added Java unit test. Reviewers: mihnea, smishra Reviewed By: smishra Subscribers: smishra, yql Differential Revision: https://phabricator.dev.yugabyte.com/D13703
emhna
added a commit
that referenced
this issue
Dec 2, 2021
…nal writes on COPY Summary: Allowing faster writes on copy command by using session variable "yb_force_non_transactional_writes". The default value for this flag is false. To enable the flag, ``` SET yb_force_non_transactional_writes=true ``` To disable the flag, ``` SET yb_force_non_transactional_writes=false ``` Note, the session variable must be applied on non-DDL operations as non-transactional writes on DDL operations is not supported. Test Plan: Jenkins: rebase: 2.8 Reviewers: mihnea, smishra Reviewed By: smishra Subscribers: yql, smishra Differential Revision: https://phabricator.dev.yugabyte.com/D14195
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use the distributed transactions to perform the writes. Explore if avoiding the transaction code path can speed up the whole operation.
If the whole operation succeeds it ideally should be much faster. If the operation fails we can truncate the whole table and restart the operation. This obviously should only be used when the table that is to copied over is new and we can truncate the table when failures occur
The logic is to use the non-transactional session instead of the transactional session in the PGgate layer to perform the writes.
The text was updated successfully, but these errors were encountered: