Skip to content

Scan only keys and maybe compaction optimisation #64

@sebheitzmann

Description

@sebheitzmann

I think that it should be possible to scan only the keys. It could be faster by the way that we only need to read the index, and no need to read the data.

Actually the scan return both the key and the value.

In the compaction process, we have the same overhead. In case that we have multiple version of a key ( one update or an Tombstone ) we read both value to keep only one. In my use case I have values that has several Mbytes. In case on tombstone, we don't need to read the value.

Do you think it's better to add a ScanKeys in the iterator interface or add a bool to specify if we want only keys ?

I will prepare a new PR fot this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions