Hello,
I do not know how to solve this; my collection is quite a big, abt. 250.000 documents,
this causes quite a big performance sensitivity.
But still i cannot understand this:
if i search the colllection this way:
declare namespace tf=“http://namespaces.softwareag.com/tamino/TaminoFunction”
let $part:=“DANEU”
for $case in input()/Registry
where ( tf:containsText( $case/Participants/Debtor/NaturalPerson/Name, $part))
return $case
i get an answer very fast a second or so, no problem.
But if i want to create a sequence out of the result so i could perform additional task on this sequence, something like this:
declare namespace tf=“http://namespaces.softwareag.com/tamino/TaminoFunction”
let $part:=“DANEU”
let $seq:=for $case in input()/Registry
where ( tf:containsText( $case/Participants/Debtor/NaturalPerson/Name, $part))
return $case
return $seq
the performance becomes terrible (more than 1 minute…)
Any hint?
Thanks, Pavel
#webMethods#API-Management#Tamino