lance-format / lance-format/lance
Eliminate `PartitionLoadLock` with `LanceCache::get_or_insert()`
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Rust
- Stars
- 7.1k
- Forks
- 852
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 272
Description
We should be able to eliminate this:
By using get_or_insert from LanceCache.
Follow up from: https://github.com/lancedb/lance/pull/4047#discussion_r2219320680
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in rust/lance/src/index/vector/utils.rs at lines 258-276 and inspect how PartitionLoadLock is used there. Read the referenced LanceCache::get_or_insert implementation and the linked discussion to understand the intended replacement. Done means the PartitionLoadLock code is eliminated while the vector-index loading behavior remains covered by the existing checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- data, machine-learning
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100