Re: [basex-talk] Merging databases?

2015-07-24 Thread Dirk Kirsten
Hello, I would be interested to know why you want to do that? I could imagine this being relevant when restructuring/refactoring your data, but given that you mention your design, it sounds like it is a recurring occurence. I currently can't imagine why you want to do that, given that you can

Re: [basex-talk] Merging databases?

2015-07-24 Thread Amanda Galtman
To: Eliot Kimber ekim...@contrext.com Cc: Amanda Galtman amanda.galt...@mathworks.com; basex- t...@mailman.uni-konstanz.de Subject: Re: [basex-talk] Merging databases? Hello, I would be interested to know why you want to do that? I could imagine this being relevant when restructuring

[basex-talk] Merging databases?

2015-07-24 Thread Amanda Galtman
Hi, Is there a simple, fast way to merge databases? For example, suppose I have 200 databases, each with 5 XML documents, and the document paths are unique across all the databases. I want to produce a database containing all 1000 documents. I looked in the Database Module wiki and nothing

Re: [basex-talk] Merging databases?

2015-07-24 Thread Eliot Kimber
If there's to better way you should be able to simply copy the docs without first exporting them: For $dbname in $dbNames Return Let $docs := collection($dbname) For $doc in $docs db:add($newDbName, $doc, $local:makeNewDocUrl($doc)) Or something close to that Cheers,