Sharing a read-only database between multiple BaseX instances
Hello,
I have a collection which is read-only. This collection is used as source for multiple XQuery update operations, operations which do not modify this read-only collection. For performance questions, I want to parallelize my XQuery operations. So I want to have multiple BaseX instances - say 8 - sharing exactly the same read-only collection, each instance performing a XQuery update on a small amount of data
As this collection is read-only, may I physically copy files (after import) from an instance to another, if instances are on different hosts, and may I symlink collection files from an instance to another if instances are on the same hosts ? When I import data in the "read-only" collection to initialize it, only one instance is started...
Best, Christophe
Hello Christophe,
that should be absolutely fine.
Cheers Dirk
Quoted text · Christophe Marchand · 44 lines
On 03/17/2016 01:55 PM, Christophe Marchand wrote: > Hello, > > I have a collection which is read-only. This collection is used as > source for multiple XQuery update operations, operations which do not > modify this read-only collection. > For performance questions, I want to parallelize my XQuery operations. > So I want to have multiple BaseX instances - say 8 - sharing exactly > the same read-only collection, each instance performing a XQuery > update on a small amount of data > > As this collection is read-only, may I physically copy files (after > import) from an instance to another, if instances are on different > hosts, and may I symlink collection files from an instance to another > if instances are on the same hosts ? > When I import data in the "read-only" collection to initialize it, > only one instance is started... > > Best, > Christophe > -- > > > Christophe MARCHAND > > Consultant Formateur > cmarchand at oxiane.com <mailto:cmarchand at oxiane.com> > LD : (+33)1 84 19 19 76 > GSM : +33 (0)6 23 41 09 17 > > oxiane > > 98, avenue du Général Leclerc > 92100 Boulogne-Billancourt > Standard : (+33)1 55 60 76 72 > Fax : (+33)1 55 60 76 73 > www.oxiane.com <http://www.oxiane.com> > > > Notre catalogue formations 2016 > > Notre catalogue formations 2015 > <http://www.oxiane.com/wp-content/uploads/2015/11/OXiane_Catalogue_2016.pdf> >
Written for BaseX 8.4. BaseX may have changed since: please check the current documentation.