AUTOOPTIMIZE - was true now false
Monday, 30 November 2015 · 5 messages · last reply 2 Dec 2015
JB
James Ball30 Nov 2015 16:56 #
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, JamesEF
Etanchaud Fabrice1 Dec 2015 09:21 #
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,
FabriceQuoted text · James Ball · 46 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de James Ball Envoyé : lundi 30 novembre 2015 16:57 À : basex-talk at 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
CG
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
Quoted text · James Ball · 57 lines
On Mon, Nov 30, 2015 at 4:56 PM, James Ball <basex-talk at 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
JB
James Ball1 Dec 2015 11:51 #
Hi Christian,
Quoted text · Christian Grün · 1 line
> 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
Quoted text · James Ball · 57 lines
> On Mon, Nov 30, 2015 at 4:56 PM, James Ball <basex-talk at 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
JB
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, JamesQuoted text · Christian Grün · 78 lines
On 1 Dec 2015, at 10:40, Christian Grün <christian.gruen at 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 at 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
Written for BaseX 8.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery