Storage: Support multiple vec indexes on the same column#9469
Conversation
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
When would |
In the beta implementation Vector Search Index(Beta), we support adding vector index by comment. That kind of vector index is created along with column_id and no index_id. For backward compatibility, we define the index_id==0 for those indexes. And in the cse branch, those indexes still workable for a period of time. |
https://github.com/pingcap/tidb/blob/9dff38ba98405422cb0eb15993f385efe9068b47/pkg/meta/model/index.go#L26 Follow tidb. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JaySon-Huang, JinheLin 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:
|
What problem does this PR solve?
Issue Number: ref #9032
Problem Summary:
What is changed and how it works?
ColumnStat.vector_indexfromstd::optional<dtpb::VectorIndexFileProps> vector_indextostd::vector<dtpb::VectorIndexFileProps>DMFileIndexWriter.cppsupports saving multiple vector index with different index_iddtpb::VectorIndexFilePropsinstead ofColumnStat.index_bytesCheck List
Tests
Side effects
Documentation
Release note