AUTOOPTIMIZE - was true now false
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
Hello James, Did you set AUTOOPTIMIZE to true BEFORE database creation ? How did you set the option ? in the db:create call, or as a SET/CREATE DB pair ? I don't have this problem with 8.3.1 Best regards, Fabrice De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de James Ball Envoyé : lundi 30 novembre 2015 16:57 À : basex-talk@mailman.uni-konstanz.de Objet : [basex-talk] AUTOOPTIMIZE - was true now false 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
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
Hi Christian,
maybe this is due to the beta version you are working with?
That is easy to test - and I will do that. I just wanted to make sure I hadn’t misunderstood what I *should* see. I will let you (and the list know) the outcome of my test. Many thanks, James
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
Sending to the list for the record. I have updated BaseX (actually to the latest Beta) as Christian suggested and the behaviour of AUTOOPTIMIZE and Up-to-date is now what I’d expect. Once set they remain set after updates. Regards, James On 1 Dec 2015, at 10:40, Christian Grün <christian.gruen@gmail.com> wrote:
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
participants (3)
-
Christian Grün -
Etanchaud Fabrice -
James Ball