Hi,
We have requirement to group elements on specific criteria. We are grouping by creating a new XML and grouping similar elements by creating a new element under which we are putting the similar elements. I just wanted to know whether all fetched element resides in Main Memory or some kind of reference is stored in basex which later retrieve the elements form XML database.
Suppose we have in some element in database. We are firing queries in database and grouping by append some new element.
let $a := /data/product[@category = "abc"]
let $b := /data/product[@category = "bcd"]
let $c := <product><abc>{$b}</abc><bcd>$b</bcd></product>
My question is, Will $c hold all the xml data in main memory or will it contains reference to $a , $b which points to the data in database ?.
Thanks $ Regards
Ankit Kumar