You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the logic for dropping the old version of KV Paris is:
Calculate the version to be deleted: any data that version lower than the calculated version can be dropped.
Scan all transaction marks that are lower than the calculated version.
Get all KV pairs for each transaction mark, and then check whether they can be dropped. Pairs should be recycled if
It has been marked deleted.
It has a new version of data.
The procedures outlined have a drawback: we need to scan all transaction marks each time if wants to collect all data out of version exactly, it would be very time-consuming and not very elegant.
How should we improve?
No response
The text was updated successfully, but these errors were encountered:
…f data in KvGcCollector (#2918)
### What changes were proposed in this pull request?
Introduce a variable to mark the last transaction ID and perform the GC
from the last transaction ID next time to fulfill `incremental GC`.
### Why are the changes needed?
Full GC for the old version of the data takes a lot of time, we'd better
not use this method.
Fix: #1276
### Does this PR introduce _any_ user-facing change?
N/A.
### How was this patch tested?
Existing tests and test locally.
What would you like to be improved?
Currently, the logic for dropping the old version of KV Paris is:
The procedures outlined have a drawback: we need to scan all transaction marks each time if wants to collect all data out of version exactly, it would be very time-consuming and not very elegant.
How should we improve?
No response
The text was updated successfully, but these errors were encountered: