(feat): expose set_capacity of the cache to the session API
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Find the session API and its cache wrapper, then check how it currently exposes cache capacity and how the underlying quick_cache is used. Add access to set_capacity so callers can reduce capacity for existing sessions; done when the session API exposes this operation and its behavior can be verified with a focused test.
Written by the indexing model from the issue text.
Description
the underlying quick_cache supports decreasing the capacity of a cache via the "set_capacity()" API:
https://docs.rs/quick_cache/latest/quick_cache/sync/struct.Cache.html#method.set_capacity
this is unseful in case that we want to manage multiple sessions and want to limit the overall memory usage of all sessions, without blocking new ones or deleting existing ones.
the "set_capacity()" API would allow partial eviction on existing sessions with minimal impact on the payload.
- Dominant language
- Rust
- Stars
- 7.2k
- Forks
- 882
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 241
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from lance-format/lance
-
bug: zero max_rows_per_file panics, zero V1 max_rows_per_group writes nothingPossibly taken @LuciferYang claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lance-format/lance#10130 ·
Maintainers usually reply within 2 days
-
perf: miniblock binary decode copies the chunk's value bytes instead of slicing themPossibly taken @LuciferYang claimed this 6 days ago. Openperformance
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
lance-format/lance#9928 ·
Maintainers usually reply within 2 days
-
After initialize_mem_wal, every FTS query logs "ERROR Index __lance_mem_wal has no fields"Possibly taken @lance-gatefixer claimed this 17 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
lance-format/lance#9655 ·
Maintainers usually reply within 2 days
-
bug: main does not compile, MinHash calls build_prefilter without the metrics argumentPossibly taken @lance-gatefixer claimed this 25 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
lance-format/lance#9506 · 1 comment ·
Maintainers usually reply within 2 days
-
perf: mapping row offsets rescans the fragment for every offset when deletions are set-backedPossibly taken @LuciferYang claimed this 25 days ago. Openperformance
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
lance-format/lance#9498 ·
Maintainers usually reply within 2 days
All issues in lance-format/lance
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
fritzprix/libr-agent#2165 ·
Maintainers usually reply within 1 day
-
area:ecosystem bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Chelis-Lang/chelis#3942 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
review-bot
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Maintainers usually reply within 1 day