Hi, I have a XQuery who does a lot of insertion in documents in the same collection, but on by one. In an other point of vue, I have a collection that I modify and others collections that I read. We the pending update list, all the modifications stays in memory before to be write and in my case that's a lot of memory. Is there a way to flush the pending update list because I know that there is no reverse action on it.
Without this I do one query for each updated collection documents.
Marc
Hi Marc,
Is there a way to flush the pending update list because I know that there is no reverse action on it.
I am sorry there's no way to do so. Flushing updates would mean that the databases would be changed during the execution of a query, and that subsequent read-only operations in the query would work on other data sets.
One way out is to use BaseX command scripts [1]. We often generate such scripts via XQuery, which can then be evaluated in a second step.
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Commands#Command_Scripts
Without this I do one query for each updated collection documents.
Marc
Thanks for answer. I thank about something like that ;( Marc
Le mercredi 23 juillet 2014 15:35:42, Christian Grün a écrit :
Hi Marc,
Is there a way to flush the pending update list because I know that there is no reverse action on it.
I am sorry there's no way to do so. Flushing updates would mean that the databases would be changed during the execution of a query, and that subsequent read-only operations in the query would work on other data sets.
One way out is to use BaseX command scripts [1]. We often generate such scripts via XQuery, which can then be evaluated in a second step.
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Commands#Command_Scripts
Without this I do one query for each updated collection documents.
Marc
basex-talk@mailman.uni-konstanz.de