You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Carsten Ziegeler <cz...@apache.org> on 2014/11/03 17:16:39 UTC
Fastest way to copy a whole tree from one repo to another?
Hi,
let's assume I have a larger tree at /foo and want to simply copy this
from one Oak instance to another (they might use different mks
underneath). What would be the fastest and/or easiest way?
(In my use case I know that /foo does not exist at the target repository)
Thanks
Carsten
--
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org
Re: Fastest way to copy a whole tree from one repo to another?
Posted by Michael Dürig <md...@apache.org>.
On 4.11.14 9:34 , Carsten Ziegeler wrote:
> Am 04.11.14 um 09:16 schrieb Michael Dürig:
>>
>> There is nothing specific to Oak here. As long as you need JCR semantics
>> you best go through JCR.
>
> And that would be...export/import?
This or an explicit traversal of the respective sub tree. Not sure which
one is faster as this also depends on the actual content. Using
export/import is probably simpler.
Michael
>
> Carsten
>
>>
>> Doing the copy on a lower layer introduces all sorts of problems with
>> UUID's, references, referenceable integrity, node types, name spaces,
>> permissions,...
>>
>> Michael
>>
>> On 3.11.14 5:16 , Carsten Ziegeler wrote:
>>> Hi,
>>>
>>> let's assume I have a larger tree at /foo and want to simply copy this
>>> from one Oak instance to another (they might use different mks
>>> underneath). What would be the fastest and/or easiest way?
>>> (In my use case I know that /foo does not exist at the target repository)
>>>
>>> Thanks
>>> Carsten
>>>
>>
>
>
Re: Fastest way to copy a whole tree from one repo to another?
Posted by Carsten Ziegeler <cz...@apache.org>.
Am 04.11.14 um 09:16 schrieb Michael Dürig:
>
> There is nothing specific to Oak here. As long as you need JCR semantics
> you best go through JCR.
And that would be...export/import?
Carsten
>
> Doing the copy on a lower layer introduces all sorts of problems with
> UUID's, references, referenceable integrity, node types, name spaces,
> permissions,...
>
> Michael
>
> On 3.11.14 5:16 , Carsten Ziegeler wrote:
>> Hi,
>>
>> let's assume I have a larger tree at /foo and want to simply copy this
>> from one Oak instance to another (they might use different mks
>> underneath). What would be the fastest and/or easiest way?
>> (In my use case I know that /foo does not exist at the target repository)
>>
>> Thanks
>> Carsten
>>
>
--
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org
Re: Fastest way to copy a whole tree from one repo to another?
Posted by Michael Dürig <md...@apache.org>.
There is nothing specific to Oak here. As long as you need JCR semantics
you best go through JCR.
Doing the copy on a lower layer introduces all sorts of problems with
UUID's, references, referenceable integrity, node types, name spaces,
permissions,...
Michael
On 3.11.14 5:16 , Carsten Ziegeler wrote:
> Hi,
>
> let's assume I have a larger tree at /foo and want to simply copy this
> from one Oak instance to another (they might use different mks
> underneath). What would be the fastest and/or easiest way?
> (In my use case I know that /foo does not exist at the target repository)
>
> Thanks
> Carsten
>