Why does OPTIMIZE ALL require an open database?

Tuesday, 21 February 2012 · 4 messages
CD
Charles Duffy21 Feb 2012 16:52 #
If OPTIMIZE ALL iterates over all available databases, why does it fail if there isn't one open when invoked? Or am I misunderstanding what it does?
AW
Andreas Weiler21 Feb 2012 16:54 #
OPTIMIZE ALL just optimizes all indexes and storage structures of the opened database...
Quoted text · Charles Duffy · 9 lines
Am 21.02.2012 um 16:52 schrieb Charles Duffy: > If OPTIMIZE ALL iterates over all available databases, why does it fail > if there isn't one open when invoked? Or am I misunderstanding what it > does? > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CD
Charles Duffy21 Feb 2012 17:03 #
Ahh; thanks -- I misunderstood the meaning of "all database files" in the documentation line:
Quoted text · Andreas Weiler · 1 line
> If the ALL flag is specified, the size of all database files is
minimized.
Quoted text · Andreas Weiler · 13 lines
On Tue, 21 Feb 2012 16:54:06 +0100, Andreas Weiler wrote: > OPTIMIZE ALL just optimizes all indexes and storage structures of the > opened database... > > Am 21.02.2012 um 16:52 schrieb Charles Duffy: > >> If OPTIMIZE ALL iterates over all available databases, why does it fail >> if there isn't one open when invoked? Or am I misunderstanding what it >> does? >> >> _______________________________________________ BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Christian Grün21 Feb 2012 17:10 #
Thanks for the hint; we've slightly changed the wording in the documentation.
Quoted text · Charles Duffy · 27 lines
On Tue, Feb 21, 2012 at 5:03 PM, Charles Duffy <charles at dyfis.net> wrote: > Ahh; thanks -- I misunderstood the meaning of "all database files" in the > documentation line: > >> If the ALL flag is specified, the size of all database files is > minimized. > > On Tue, 21 Feb 2012 16:54:06 +0100, Andreas Weiler wrote: > >> OPTIMIZE ALL just optimizes all indexes and storage structures of the >> opened database... >> >> Am 21.02.2012 um 16:52 schrieb Charles Duffy: >> >>> If OPTIMIZE ALL iterates over all available databases, why does it fail >>> if there isn't one open when invoked? Or am I misunderstanding what it >>> does? >>> >>> _______________________________________________ BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery