Skip to content

Switch from number based interval references to key based #45

@tomijaga

Description

@tomijaga

Problem

Currently, when we scan an index we represent the entries returned from the scan as two numbers - the start and end index of the first and last key in the list of entries. The index is the ordered position of the key in the b-tree.
However, this could lead to incorrect results when executing queries while an entry in the database is updated during the query execution.
For instance, if we scan an index and it returns a an interval of (0, 5). If a new entry with the smallest key is inserted into the index (b-tree), it will be inserted at index 0 and as a result shift the results of our scan to (1, 6).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions