flush the pending list
Wednesday, 23 July 2014 · 3 messages
M
Marc23 Jul 2014 13:11 #
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
CG
Christian Grün23 Jul 2014 15:35 #
Hi Marc,
Quoted text · Marc · 2 lines
> 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
Quoted text · Marc · 3 lines
> Without this I do one query for each updated collection documents. > > Marc
M
Marc23 Jul 2014 15:46 #
Thanks for answer.
I thank about something like that ;(
Marc
Quoted text · Christian Grün · 24 lines
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
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery