Dear Basex,
We have written a query to read nodes from collection which are in volumes of crores.Sample xml is as attached to this mail.In the xml there are crores of nodes with the tag "R",now i need to fetch all the tags with "R", i have used the below query to fetch it but the amount of time it is taking to do is going above 5 minutes and taking a memory of >1 GB.
for $PSTNCallData in (collection("52_DATA_AUGUST-14_Billed_HugeDataTesting")/SUBCUSTBRK/ITEMIZED/TRANSACTION[data(@Type)=('PSTN')]/CALL_TYPES/DATA/R) return
<R><bill_no>{$PSTNCallData/C1}</bill_no></R>
Could you please help us in optimizing this query.Thank you in advance.
Thanks & Regards
ChandraShekar