Project

Profile

Help

Bug #5077 ยป Saxon API Query.txt

Dipak Shinde, 2021-09-03 11:40

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

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

    
7
for 
8
	$ReturnDataState at $currentReturnDataStatePos in if(....................
9
	
10
let $genSchA := false()
11
let $genAllRealTangibleProperty...........
12

    
13
<Evaluation><FieldEntry>
14
                    <Name>x:AllPropEndYrTotal</Name>
15
                    <Xpath>x:ReturnState/x:ReturnDataState/x:SchA/x:AllRealTangibleProperty/x:AllPropEndYrTotal</Xpath>
16
			        <Value>{$AllPropEndYrTotalData}</Value>
17
			        <NextValue></NextValue>
18
			     ....................................
19
                    <NodeIsPresent></NodeIsPresent>
20
                    <HasChildNodes></HasChildNodes>
21
		            </FieldEntry></Evaluation>
22
					
23
Code:
24
  XdmValue evaluations = evaluator.Evaluate();
25

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