-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Separate keys and values in data blocks #14287
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
base: main
Are you sure you want to change the base?
Changes from all commits
f63fb86
96d18c6
65f04b0
6869152
69bf786
c11ba88
f010c8b
f6d0ddf
b58c5cb
49cdfff
7032df2
ed3761e
9733c89
4851f32
70f891d
812d16a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,6 +77,9 @@ struct TablePropertiesNames { | |
| static const std::string kUserDefinedTimestampsPersisted; | ||
| static const std::string kKeyLargestSeqno; | ||
| static const std::string kKeySmallestSeqno; | ||
| static const std::string kDataBlockRestartInterval; | ||
| static const std::string kIndexBlockRestartInterval; | ||
| static const std::string kSeparatedKVInDataBlock; | ||
| }; | ||
|
|
||
| // `TablePropertiesCollector` provides the mechanism for users to collect | ||
|
|
@@ -320,6 +323,15 @@ struct TableProperties { | |
|
|
||
| bool HasKeySmallestSeqno() const { return key_smallest_seqno != UINT64_MAX; } | ||
|
|
||
| // Block restart intervals used when building this SST file. | ||
| // 0 means unknown (for backwards compatibility with older SST files). | ||
| uint64_t data_block_restart_interval = 0; | ||
| uint64_t index_block_restart_interval = 0; | ||
|
|
||
| // Whether the SST file uses separated key/value storage in data blocks (0 = | ||
| // false). | ||
| uint64_t separated_kv_in_data_block = 0; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer not to have slightly different names for essentially the same thing This property might not age well if we start to mix separation strategies based on factors in the data, such as avoiding separation for small values. |
||
|
|
||
| // DB identity | ||
| // db_id is an identifier generated the first time the DB is created | ||
| // If DB identity is unset or unassigned, `db_id` will be an empty string. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.