lazy evaluation for variables?
Monday, 17 February 2014 · 3 messages
WS
Wiemer, Sebastian17 Feb 2014 10:24 #
Hi,
given the following example
let $result := doc(‚myDataBase‘)/result
return $resultwill $result be evaluated lazily, or will it be stored in memory?
kind regards,
Sebastian
DK
Dirk Kirsten17 Feb 2014 10:30 #
Hello Sebastian,
Neither, in this case; this expression will be inlined.
It is quite difficult to say for general cases what will happen to a query. You can find out more about the compiling steps and the optimized query if you take a look at the query info for your specific query.
Cheers,
Dirk
Quoted text · Sebastian · 18 lines
On 17/02/14 10:24, Wiemer, Sebastian wrote: > Hi, > > given the following example > > let $result := doc(‚myDataBase‘)/result > return $result > > will $result be evaluated lazily, or will it be stored in memory? > > kind regards, > > Sebastian > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
--
Dirk Kirsten, BaseX GmbH, http://basex.org
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
WS
Wiemer, Sebastian17 Feb 2014 11:49 #
Thank you! That helped a lot!
Quoted text · Dirk Kirsten · 40 lines
Am 17.02.2014 um 10:30 schrieb Dirk Kirsten <dk at basex.org>: > Hello Sebastian, > > Neither, in this case; this expression will be inlined. > It is quite difficult to say for general cases what will happen to a > query. You can find out more about the compiling steps and the optimized > query if you take a look at the query info for your specific query. > > Cheers, > Dirk > > On 17/02/14 10:24, Wiemer, Sebastian wrote: >> Hi, >> >> given the following example >> >> let $result := doc(‚myDataBase‘)/result >> return $result >> >> will $result be evaluated lazily, or will it be stored in memory? >> >> kind regards, >> >> Sebastian >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > > -- > Dirk Kirsten, BaseX GmbH, http://basex.org > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Written for BaseX 7.8. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery