Hi,
We have a doctype with an index defined over three fields (obra, par and posPar). The following XQuery
for $a in input()/A
where $a/obra=398 and $a/par=557 and $a/posPar>=2
return $a
is very slow, while this one:
for $a in input()/A
where $a/obra=398 and $a/par=557 and $a/posPar = (2, 3, 4, 5, 6, 7, 8, 9)
return $a
is executed inmediately.
The problem is the “>” operand (or “>=” or “ge”) What’s the correct way to write the first XQuery?
Thanks in advance?
#Tamino#webMethods#API-Management