JC-Shi / Learned-Index-Benefits

13 stars 5 forks source link

索引类型编码 #8

Open caiji762 opened 1 month ago

caiji762 commented 1 month ago

作者您好,在编写特征工程代码时,我遇到了下面的问题: 假设索引配置中有两项索引分别为company_type.id和company_type.id#company_type.kind,查询计划中某个节点涉及到的列是company_type.id,就可以认为该节点是可优化算子,对其进行特征提取,可是在对索引类型进行特征化的时候,应该将其视为单列索引还是组合索引呢?

JC-Shi commented 1 month ago

Thanks for the question. If the index candidate is a multi-column index, you can use the multi-column feature and mark the indexable column position in the multi-column index.

caiji762 commented 1 month ago

明白了,谢谢!