Hi Julien,

I did find nothing in the documentation about an eventual tool to duplicate
> a document.
> Is there a simple way to do that? Or which solution could be the most
> appropriated to do it (I use the PHP API)?



You may create an empty document in the destination collection and insert
root element (and any other top-level nodes) from the source document:

(: begin transaction :)
create document 'duplicate' in collection '2011'
update insert doc('source', '2010')/* into doc('duplicate', '2011')
(: commit transaction :)


Ivan Shcheklein,
Sedna Team
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to