lance-format / lance-format/lance

Unexpectedly slow scalar index performance

Open
#1,887 0 comments 0 reactions 1 assignee View on GitHub

@westonpace is already working on this.

Since Jan 30, 2024.

A-index performance
Dominant language
Rust
Stars
7.1k
Forks
852
Avg merge
3d 18h
Merged PRs (30d)
272

Description

This was reported from Discord. When querying an indexed column with a very simple query (unique_id_col = some_id) there was a lot of CPU time spent in the materialize index node. It looks like we are always materializing the entire list of row IDs (this table had millions of rows) even if the allow list is very small. We can probably pick the smaller of the two lists to iterate on if there is no block list.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.