Hi,
I am invoking a java method inside My XQuery script, My java methods returns a string array which contains the Id of elements. Now I am taking that list in a xquery variable. It looks like this.
let $ids := javacontext:getIds(); // Java Method return /sample_xml/category/product[@id = $ids]
Now the problem is that, It is working fine with this, but when I declare variable $ids as xs:string* sequence. It performance is decreased by almost 100%. It looks like this.
let $ids as xs:string* := javacontext:getIds(); // Java Method return /sample_xml/category/product[@id = $ids]
But, for bigger no of products, and ids . when the variable $ids declared as xs:string*, it is working good, but when I removed xs:string*. it performance decreased drammatically.
I have no idea, why it is working in such a way. Any kind of help is appreciated.
Thanks, Ankit