AnsweredAssumed Answered

What's more efficient? Get nodeRef from uuid or path?

Question asked by spilby on Sep 17, 2014
Latest reply on Sep 18, 2014 by spilby
Hi!

I have a NodeRef object of a node, and I want to save it on BD for use it in the future. From the NodeRef object I can obtain the uuid or the path, for example.

The question is… In order to save the correct information that I need to obtain the NodeRef later optimally (efficient and quickly, because the tree of nodes on Alfresco is too big), what is the best way?

For example, I can do this:

NodeRef ref = new NodeRef(uuid);


or I can do a lucene search with the path. But I don't know which is the best efficient way to obtain a NodeRef.

Thanks!



Outcomes