storage: long term cache for integer-like PK column in memory#9445
storage: long term cache for integer-like PK column in memory#9445ti-chi-bot[bot] merged 7 commits intopingcap:feature/vector-indexfrom
Conversation
Signed-off-by: Wish <breezewish@outlook.com>
Signed-off-by: Wish <breezewish@outlook.com>
| .dmfile_id = dmf_id, | ||
| .column_id = column_id, | ||
| }; | ||
| auto [result, _] = cache.getOrSet(key, [&load_fn] { return std::make_shared<IColumn::Ptr>(load_fn()); }); |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: breezewish, CalvinNeo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
@Lloyd-Pottiger: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: ref #9032
Problem Summary:
What is changed and how it works?
Optimize for VectorDBBench.
ColumnArray::insertManyDefaults. It is a critical path used in Vector Search, because Vector Search will return sparse results. (TODO: Use ColumnSparse is better)String block_filter_value;, which costs time.BitmapFilter.get()takes time. So this PR totally drops it.DMFileWithVectorIndexBlockInputStreamnow builds the return filter directly from the result rows.Benchmark (VectorDBBench, Cohere 1M vectors, 768 dimensions):
Before this PR @ Macbook M1 Pro: 180QPS @ 30 concurrency
After this PR @ Macbook M1 Pro: 250QPS @ 30 concurrency
Check List
Tests
Side effects
Documentation
Release note