A db can only be copied once...
Wednesday, 25 May 2016 · 3 messages
FB
France Baril25 May 2016 07:40 #
Hi,
Since a DB cannot be created dynamically from a restxq call, I'm trying to create some databases by copying an existing one (an empty DB with all the desired parameters). However, it seems that I am unable to create multiple instances from the same DB template.
Is there a reason for this limit? I am providing a different target name for each, so technically there shouldn't be any duplicate writing. Any workaround to suggest? Beside the creation of multiple template DB source?
Thanks!
--
France Baril
Architecte documentaire / Documentation architect
france.baril at architextus.com
CG
Christian Grün25 May 2016 07:51 #
Hi France,
Quoted text · France Baril · 1 line
> Since a DB cannot be created dynamically from a restxq call
Did you try
db:create?Quoted text · France Baril · 2 lines
> However, it seems that I am unable to create multiple > instances from the same DB template.
To answer this question, I need some more information on how you proceed. Do you use
db:copy?
Best,
ChristianFB
France Baril25 May 2016 20:18 #
Hi,
I had not try
db:create because when I tried it before I couldn't set the auto indexing and no space chopping options. Now that I look at the latest documentation, I see that new options were added.
I'll try with db:create instead of db:copy. It will be way better as I can specify a language for indices and get stemming!
Thanks!Quoted text · Christian Grün · 17 lines
On Tue, May 24, 2016 at 10:51 PM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi France, > > > Since a DB cannot be created dynamically from a restxq call > > Did you try db:create? > > > However, it seems that I am unable to create multiple > > instances from the same DB template. > > To answer this question, I need some more information on how you > proceed. Do you use db:copy? > > Best, > Christian >
--
France Baril
Architecte documentaire / Documentation architect
france.baril at architextus.com
Written for BaseX 8.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery