prof:time and updating expression
Wednesday, 7 January 2015 · 2 messages · last reply 8 Jan 2015
JM
CG
Christian Grün8 Jan 2015 15:23 #
Hi Jean-Marc,
Quoted text · jean-marc Mercier · 3 lines
> I was trying to profile updating expression, and the result is > [XUST0001] prof:time(value[,cache[,label]]): no updating expression allowed. > Is this a desired behavior ?
This is indeed the expected behavior. The reason is that updates will always be performed after the query itself has been evaluated, which is why the time for performing the update cannot be measured within XQuery. See [1] for more details.
Best,
Christian
[1] http://docs.basex.org/wiki/XQuery_Update#Concepts
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery