Re: [basex-talk] memory usage when writing files

2015-03-27 Thread Lars Johnsen
Hi Christian, and thanks a lot for the pointer to fetch:xml - it seems to do the trick! Now, a little recoding, and it should be working. Best, Lars 2015-03-27 10:48 GMT+01:00 Christian Grün christian.gr...@gmail.com: Hi Lars, Here is some background information for the reported behavior

[basex-talk] memory usage when writing files

2015-03-27 Thread Lars Johnsen
Hi all Here is code that gradually eats up memory, whether run in GUI or as command. All it does is creating temporary collections out of folders, and writing them to file. Is there a simple way to avoid this code to eat up memory? It runs out of memory (set at 12GB for command, 18GB in GUI)

Re: [basex-talk] memory usage when writing files

2015-03-27 Thread Christian Grün
Hi Lars, Here is some background information for the reported behavior (sorry in advance if this is known to you anyway): The functional semantics of XQuery requires that repeated calls to fn:doc and fn:collection return the same documents. This can e.g. be shown by the following query: