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
With the presumption that the workload of a given table remains consistent, we can persist the inferred time window to table manifest to avoid calculating it everytime.
Another benefit of this proposal is that it enforces all SSTs in level 1 to have the same aligned time window, which makes it easier to find compactable SSTs in level 1.
What does the feature do?
Persist inferred time window to table manifest on first compaction and use that window for following compactions.
Implementation challenges
We can add a field compaction_time_window on TableOptions :
What problem does the new feature solve?
Everytime when compacting a table, we scan all SST files in level 0 and calculate a suitable time window for compaction.
greptimedb/src/storage/src/compaction/strategy.rs
Line 51 in af1f8d6
With the presumption that the workload of a given table remains consistent, we can persist the inferred time window to table manifest to avoid calculating it everytime.
Another benefit of this proposal is that it enforces all SSTs in level 1 to have the same aligned time window, which makes it easier to find compactable SSTs in level 1.
What does the feature do?
Persist inferred time window to table manifest on first compaction and use that window for following compactions.
Implementation challenges
We can add a field
compaction_time_window
onTableOptions
:greptimedb/src/table/src/requests.rs
Lines 62 to 70 in e17d5a1
We can also allow users to manually specify this option when creating table using
WITH
clause like:The text was updated successfully, but these errors were encountered: