Adding a file to DB with automatically updated index disables attribute index
Monday, 1 July 2019 · 4 messages · last reply 5 Jul 2019
FB
France Baril1 Jul 2019 16:52 #
Hi,
Here are the steps to reproduce:
1. In Oxygen XML, in the data explorer (webDAV connection), create and save a new xml file with content <test/>
2. Run a query with
db:attribute
System returns: [db:no-index] Database 'en-us' has no attribute index.
The problem is resolved after a db:optimize(), but it's not practical in our case.--
France Baril
Architecte documentaire / Documentation architect
france.baril at architextus.com
CG
Christian Grün1 Jul 2019 17:13 #
Do you have
UPDINDEX enabled in your project? See [1] for more information.
Best,
Christian
[1] http://docs.basex.org/wiki/Options#UPDINDEXQuoted text · France Baril · 16 lines
On Mon, Jul 1, 2019 at 4:52 PM France Baril <france.baril at architextus.com> wrote: > > Hi, > > Here are the steps to reproduce: > 1. In Oxygen XML, in the data explorer (webDAV connection), create and save a new xml file with content <test/> > 2. Run a query with db:attribute > System returns: [db:no-index] Database 'en-us' has no attribute index. > > The problem is resolved after a db:optimize(), but it's not practical in our case. > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com
FB
France Baril3 Jul 2019 14:59 #
Yes, we do.
Quoted text · Christian Grün · 31 lines
On Mon, Jul 1, 2019 at 5:13 PM Christian Grün <christian.gruen at gmail.com> wrote: > Do you have UPDINDEX enabled in your project? See [1] for more information. > > Best, > Christian > > [1] http://docs.basex.org/wiki/Options#UPDINDEX > > > > On Mon, Jul 1, 2019 at 4:52 PM France Baril > <france.baril at architextus.com> wrote: > > > > Hi, > > > > Here are the steps to reproduce: > > 1. In Oxygen XML, in the data explorer (webDAV connection), create and > save a new xml file with content <test/> > > 2. Run a query with db:attribute > > System returns: [db:no-index] Database 'en-us' has no attribute > index. > > > > The problem is resolved after a db:optimize(), but it's not practical in > our case. > > > > -- > > France Baril > > Architecte documentaire / Documentation architect > > france.baril at architextus.com >
--
France Baril
Architecte documentaire / Documentation architect
france.baril at architextus.com
CG
Christian Grün5 Jul 2019 20:56 #
Quoted text · France Baril · 1 line
> Yes, we do.
I did, too, and it works. How did you enable
UPDINDEX, and how do you start the BaseX HTTP server instance?Quoted text · Christian Grün · 34 lines
> On Mon, Jul 1, 2019 at 5:13 PM Christian Grün <christian.gruen at gmail.com> wrote: >> >> Do you have UPDINDEX enabled in your project? See [1] for more information. >> >> Best, >> Christian >> >> [1] http://docs.basex.org/wiki/Options#UPDINDEX >> >> >> >> On Mon, Jul 1, 2019 at 4:52 PM France Baril >> <france.baril at architextus.com> wrote: >> > >> > Hi, >> > >> > Here are the steps to reproduce: >> > 1. In Oxygen XML, in the data explorer (webDAV connection), create and save a new xml file with content <test/> >> > 2. Run a query with db:attribute >> > System returns: [db:no-index] Database 'en-us' has no attribute index. >> > >> > The problem is resolved after a db:optimize(), but it's not practical in our case. >> > >> > -- >> > France Baril >> > Architecte documentaire / Documentation architect >> > france.baril at architextus.com > > > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com
Written for BaseX 9.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery