Zhuangda Z
01/02/2024, 10:16 PMZhuangda Z
01/04/2024, 5:12 PMXiang Fu
Zhuangda Z
01/04/2024, 7:56 PMXiang Fu
Zhuangda Z
01/04/2024, 8:02 PMmirror_string_col IN (str0, str1…)Xiang Fu
mirror_string_col ? In your case you may need inverted index which force the column to have a dictionary which we usually don’t put on text index columnZhuangda Z
01/04/2024, 8:12 PMXiang Fu
Zhuangda Z
01/04/2024, 8:14 PMurl and mirror_url. url has text index enabled while mirror_url with star-treeXiang Fu
Xiang Fu
Xiang Fu
url with raw text index for fuzzy match, and mirror_url with dictionary for queries like mirror_string_col IN (str0, str1…)Xiang Fu
Xiang Fu
select distinct(url) from myTable where url TEXT_MATCH xxxx --> (str0, str1…)
select count(*) from myTable where mirror_string_col IN (str0, str1…)
is same as
select count(*) from myTable where url TEXT_MATCH xxxxXiang Fu
Zhuangda Z
01/04/2024, 8:21 PMyou don’t need to build startree-index, as the rows to aggregate is lowRight, if the number of rows to aggregation is low( <
maxLeafRecords), we should expect to get the same perf as startree-index.Xiang Fu