Hi Christian,
The code I sent is actually working code. The data however are many files. I do not know whether it depends on the amount of data (800 mb) or on the query itself. In general, I was wondering whether there may be a performance difference between using an explicit element constructor (e.g, <s>{$a/s/data(.)}</s>) and adding an element already contained in the document ($a/s, which evaluates to the same element as the above). Thanks.
Il giorno 15 mar 2017, alle ore 20:49, Christian GrĂ¼n christian.gruen@gmail.com ha scritto:
I have noticed that while the preceding query works fine, if I substitute all the elements in it (e.g, <s>{$a/s/data(.)}</s>) with their contents ($a/s/) (i.e., I expect that the exact same element of the document is inserted), BaseX gets out of main memory. Any explanation? Thanks.
Some executable code would be helpful.
Thanks, Christian