Project

Profile

Help

Bug #5077 ยป Saxon API Query.txt

Dipak Shinde, 2021-09-03 11:40

 
1. 1. A per our business logic we have created rule(Xquery) and we are evaluating this with the help of evaluate method.
2 XQuery:

let $gReturnDataState := element{'ReturnDataState'} {''}
let $gSchA...................

for
$ReturnDataState at $currentReturnDataStatePos in if(....................
let $genSchA := false()
let $genAllRealTangibleProperty...........

<Evaluation><FieldEntry>
<Name>x:AllPropEndYrTotal</Name>
<Xpath>x:ReturnState/x:ReturnDataState/x:SchA/x:AllRealTangibleProperty/x:AllPropEndYrTotal</Xpath>
<Value>{$AllPropEndYrTotalData}</Value>
<NextValue></NextValue>
....................................
<NodeIsPresent></NodeIsPresent>
<HasChildNodes></HasChildNodes>
</FieldEntry></Evaluation>
Code:
XdmValue evaluations = evaluator.Evaluate();

3. For few rules XQuery execution takes greater than 30GB memory.
    (1-1/1)