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
[cherry-pick-1.1-dev] improve delete from table without where & limit (#13120) #15372
Conversation
…13120) When a table does not have a foreign key. So for delete from table, it can be optimized to truncate. Approved by: @m-schen, @nnsgmsone, @badboynt1, @aunjgr, @ouyuanning (cherry picked from commit 118e577)
@noorall Thanks for your contributions! Here are review comments for file pkg/pb/plan/plan.pb.go: Pull Request Review:Title:The title of the pull request is clear and informative, indicating that the changes are related to improving the delete operation from a table without a where clause and limit. Body:The body of the pull request provides context about the optimization made for deleting from a table without a foreign key by using the truncate operation. It also lists the approvals and the commit from which the changes were cherry-picked. The PR type, related issue, and the purpose of the changes are also mentioned. Changes in
|
# Conflicts: # pkg/pb/plan/plan.pb.go # pkg/sql/plan/build_dml_util.go # proto/plan.proto
When a table does not have a foreign key. So for delete from table, it can be optimized to truncate.
Approved by: @m-schen, @nnsgmsone, @badboynt1, @aunjgr, @ouyuanning
(cherry picked from commit 118e577)
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/2919
What this PR does / why we need it:
improve delete from table without where & limit (#13120)