Hi, With Oak, moving nodes is now much slower unfortunately, at least with some storage engines (for example the document store / MongoDB). It is basically the same as adding new nodes and deleting old nodes. I'm afraid there is no easy solution for this problem.
Regards, Thomas On 20/05/16 10:38, "doublequote" <alexandre.guille...@gmail.com> wrote: >Hello, > >I'm using Oak and I'm facing a performance problem when I try to move a >node >which has many children (~3000) in a treee structure with 5 levels. It's >very slow, the JVM memory is grows to much, etc. > >The piece of code : > >Node node = session.getNodeByIdentifier(nodeId); >Node targetNode = session.getNodeByIdentifier(targetId); > >session.move(node.getPath(), targetNode.getPath() + "/" + node.getName()); >session.save(); > >Am I doing something wrong ? Is there an other way to do that ? > >Thanks >Alexandre > > > > >-- >View this message in context: >http://jackrabbit.510166.n4.nabble.com/Jackrabbit-Oak-move-performance-pro >blem-tp4664073.html >Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.