-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Feature/optimize blob #2
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: develop
Are you sure you want to change the base?
Conversation
db/blob/blob_index.h
Outdated
| // | char | varint64 | varint64 | varint64 | char | | ||
| // +------+-------------+----------+----------+-------------+ | ||
| // +------+-------------+----------+----------+----------+-------------+ | ||
| // | type | file number | offset | size | etime | compression | |
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.
etime is too simple to make me confused, expire_time maybe better.
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.
done
| // `new_value` and `skip_until` are applicable to the decisions kChangeValue | ||
| // and kRemoveAndSkipUntil respectively, and have the same semantics as | ||
| // the corresponding parameters of FilterV2/V3. | ||
| virtual Decision FilterBlobByKey(int /*level*/, const Slice& /*key*/, |
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.
the args expire_time seems do nothing, and in db/blob/db_blob_compaction_test.cc, the FilterBlobByKey function of derived class is not be modified.
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.
derived compactionfilter will implement FilterBlobByKey to determine if drop this kv according to expire_time.
since pika store ttl in value,this can skip blobfile random read during compaction.
db/blob/blob_file_builder.cc
Outdated
| return Status::OK(); | ||
| } | ||
|
|
||
| Slice etime_slice = Slice(value.data() + value.size() - sizeof(uint64_t), sizeof(uint64_t)); |
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.
where is value format? the last 8 bytes is expire time?
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.
format is define in pika project, and this pr is only used in pika.
No description provided.