-
Notifications
You must be signed in to change notification settings - Fork 419
perf: close issue 4974 by do not delete columns when drop logical region about 100 times faster #5561
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
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
97b5140
to
051a1ac
Compare
@fengjiachun @WenyXu done using |
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.
LGTM, thanks you! @yihong0618
@WenyXu PTAL |
address by use else path way. |
If all logical tables are force dropped via drop physical region request, we don't need to send drop logical table requests to datanode. By the way, we don't need to handle the greptimedb/src/common/meta/src/ddl/drop_database/cursor.rs Lines 64 to 91 in f6f617d
|
using this way do not check is logical region can be recover? the error local
|
still think old way is better and maybe for the recover, so holding this.
|
Yes, you can update the unit test. |
We can just update the test.
It wouldn't.
I think left some comments are aceeptable. |
copy that and thank you very much for the confirm |
BTW, I’ll help check the test when I have some free time. It shouldn’t be too tricky. |
Thanks again learned that! |
I realize the changes in this PR might be a bit tricky. However, this is a critical feature that I’d like to include in the 0.12 release. Would you mind if I make the adjustments directly and push them to this PR? Feel free to share your thoughts. |
just continue commit if you have some thought I missed, on this Pull request is nice I wonder, And I'd like to learn from you, thanks again and I will fix the review comments |
Great, I’ve added some detailed comments. Feel free to reach out if you have any questions. |
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
7c33468
to
83f4071
Compare
rebased for easy change |
83f4071
to
b23f6c0
Compare
address and add co-author |
Hi, I realized this PR could be a little tricky. Would you be okay if I made changes directly on your code base? If we can't avoid sending RPCs to the datanode, |
of course and I would like that.. |
It's expected. |
0dace20
to
8042c69
Compare
8042c69
to
f5b3de8
Compare
I hereby agree to the terms of the GreptimeDB CLA.
After some search and learn the region server found maybe we can skip the drop columns in drop logical region
since all data can be drop in
phy
table I wonder.because the function
get_all
orget_all_with_prefix
is very expensive, cost almost all the time for the drop databasebefore this patch
after this patch

the generate data scripts
Refer to a related PR or issue link (optional)
close #4974
What's changed and what's your intention?
PR Checklist
Please convert it to a draft if some of the following conditions are not met.