Skip to content

Can backward reading be less adversarial to BufferedIndexInput? #12356

Closed
@jpountz

Description

@jpountz

Description

Forked from https://lists.apache.org/thread/1fskhmz84pp60o41txsxj2193vt9txod: if BufferedIndexInput is asked to read N bytes backward, one after the other, it will internally trigger N refills of its internal 1kB buffer. While this particular case may be better fixed by changing the layout of the data (#12355), there are a couple other cases when we occasionally need to go backwards and it would be nice if BufferedIndexInput handled it more gracefully (e.g. when navigating to a parent node in the BKD index)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions