Open congqixia opened 1 month ago
Record pre-calculated segment id result from PK as segment hints and utilize them in following stages
When compaction happens, the segment hints may be out-of-date so the detection & fallback mechanism is needed. The default fallback behavior is to act like the hint never exists, which is to iterate all candidates and re-calculate the segment ids.
The segment hints fields are newly added so that old components will just ignore the hint and act like fallback behavior. So there shall be no compatibility issue here.
the delete data route is relevant to multiple components: proxy, mq, datanode, querynode & storage.
Delete by expression(aka complex delete) is separated into multiple steps:
The Action items here:
There are two feature could be related to segment hints
The delegator need to forward streaming the streaming and l0 delta data into corresponding segments. Both task could utilize segment id hint as long as the delete data contains them.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen
.
Is there an existing issue for this?
What would you like to be added?
Add segment id hint in multi-stage operations like: "Requery", "DeleteByExpression", "L0Compaction", etc.
Why is this needed?
There are lots of duplicate execution in previous mentioned operations, especially to location segment id from input PK values. Some of them are proven to be the bottlenecks in some extreme use case.
Anything else?
No response