Hi James,
maybe this is due to the beta version you are working with? I just ran the following command script with BaseX 8.3.1...
set updindex true set autooptimize true create db name add to x.xml <a/> info db close
...and the up-to-date continues to be "true" after the update.
Hope this helps, Christian
On Mon, Nov 30, 2015 at 4:56 PM, James Ball basex-talk@jamesball.co.uk wrote:
Hello,
I’m trying out AUTOOPTIMIZE for the first time and I’m not getting what I expect.
Running: BaseX 8.3 beta ec9b627
A new database is created with a single document which has TEXTINDEX, ATTRINDEX, UPDINDEX and AUTOOPTIMISE all set to true.
This is what INFO DATABASE shows (as I expect):
Indexes Up-to-date: true TEXTINDEX: true ATTRINDEX: true FTINDEX: false TEXTINCLUDE: ATTRINCLUDE: FTINCLUDE: LANGUAGE: English STEMMING: false CASESENS: false DIACRITICS: false STOPWORDS: UPDINDEX: true AUTOOPTIMIZE: true MAXCATS: 100 MAXLEN: 96
Now I add a new document (or more than one) to the database. I expect that Up-to-date will still be true and that AUTOOPTIMIZE will still be true. But what I see is both are now false:
Indexes Up-to-date: false TEXTINDEX: true ATTRINDEX: true FTINDEX: false TEXTINCLUDE: ATTRINCLUDE: FTINCLUDE: LANGUAGE: English STEMMING: false CASESENS: false DIACRITICS: false STOPWORDS: UPDINDEX: true AUTOOPTIMIZE: false MAXCATS: 100 MAXLEN: 96
Perhaps this is the expected behaviour and I’ve misunderstood AUTOOPTIMIZE? Or is there a bug?
Many thanks, James