我们在测tdengine的时候,发现1个现象,比如
select xxx from t1 where a not in () and b= xx
其中a,和b字段都是全都建立了tag index ,但是这样的情况就不能走tag index
如果变成了select xxx from t1 where a in () and b= xx
就可以走tag index
有点不能够理解,not in 不走tag index 可以理解,但是b=xx,应该可以走tag index 才是吧
后续版本会支持这个用法。
我个人一点想法哈,一条SQL where 里面有很多条件,要是有1个字段是tag 字段的话,那应该走tag index哈,不应该说存在1个not in 就不走了