prof:time and updating expression

Wednesday, 7 January 2015 · 2 messages · last reply 8 Jan 2015
JM
jean-marc Mercier7 Jan 2015 07:51 #
Hi all, 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 ? Cheers, Jean-Marc
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

⚡Generated with XQuery