-
Notifications
You must be signed in to change notification settings - Fork 752
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
Feature: Delete From #4228
Feature: Delete From #4228
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/databend/databend/Dad49VrPQPgkK7HZYCPVfYszoJGb [Deployment for 6c35cd8 canceled] |
Thanks for the contribution! Please review the labels and make any necessary changes. |
} | ||
|
||
let new_snapshot = self.merge_segments(&segments_kept, &segments_new); | ||
self.commit_deletion(new_snapshot).await? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So deletion
will block inserts
& updates
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deletion
does not block other mutations. In this pr, a rather simple rule will be applied: when there are deletion-write conflicts, first-committer-win.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So continuous small inserts will cause the heavy deletion retry ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So continuous small inserts will cause the heavy deletion retry ...
er... too awkward... to catch this message months later.
- yes, OCC implies the possibility of retrying
- deletion might be heavy, but the retrying of deletion might not be
transfered to PR #5691 |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
WIP: Statement "delete from"
Changelog
Related Issues
Fixes #issue
Test Plan
Unit Tests
Stateless Tests