Hi, I want to know if this is a normal behaviour:
I have a index like:
CREATE INDEX idx_family_cond
ON CONTENT
((main
.family
)) WHERE ((type
= “animal”) and ((main
.species
) in [“mammal”, “reptiles”, “insects”])) WITH { “num_replica”:1 }
then, as I understand, this query should be covered by this index:
select main.family
from CONTENT use index (idx_status_cond)
WHERE (type
= “animal”) and (main
.species
) = “mammal”
but it isn’t, and only when I add all main.species is when I get a cover:
select main.family
from CONTENT use index (idx_status_cond)
WHERE ((type
= “animal”) and ((main
.species
) in [“mammal”, “reptiles”, “insects”]))
Is this normal? Logic says both should be cover