Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Determin secondary index value emptiness by datadic #1440

Description

@rockeet

In most cases, secondary index values are empty, thus rocks_iter->value() is not needed in such cases.

We realized an SST with lazy load of value, this is a big improvement for large values.

When value is small(even empty), lazy load is less useful, but the calling chain is still needed, in our optimized rocksdb branch, in iter scan, it is about 70~90ns per kv-pair, in which the iter->value() is about 11ns for empty value.

If secondary index value emptiness can be identified by datadic, the iter->value() can be omitted, this is a reasonable optimization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions