<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What's more efficient? Get nodeRef from uuid or path? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/301998#M255128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I can do this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;NodeRef ref = new NodeRef(uuid);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 13:43:12 GMT</pubDate>
    <dc:creator>spilby</dc:creator>
    <dc:date>2014-09-17T13:43:12Z</dc:date>
    <item>
      <title>What's more efficient? Get nodeRef from uuid or path?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/301998#M255128</link>
      <description>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, becau</description>
      <pubDate>Wed, 17 Sep 2014 13:43:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/301998#M255128</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-09-17T13:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: What's more efficient? Get nodeRef from uuid or path?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/301999#M255129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Store the node ref.&amp;nbsp;&amp;nbsp;&amp;nbsp; that's what its for.&amp;nbsp;&amp;nbsp; not parts of it.&amp;nbsp;&amp;nbsp;&amp;nbsp; You can't use a path since the node could move.&amp;nbsp;&amp;nbsp; You may get away with the storing the&amp;nbsp; uuid as long as you only use one store ref.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 21:13:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/301999#M255129</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-09-17T21:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: What's more efficient? Get nodeRef from uuid or path?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/302000#M255130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But how can I store a NodeRef object on a database? Like a VARCHAR doing &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;nodeRef.toString()&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; method? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And in order to obtain the NodeRef object later, from the database, the correct way is doing: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;NodeRef ref = new NodeRef(noderef);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;? When noderef is the nodeRef.toString mentioned before.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 08:51:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/302000#M255130</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-09-18T08:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: What's more efficient? Get nodeRef from uuid or path?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/302001#M255131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 19:25:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-s-more-efficient-get-noderef-from-uuid-or-path/m-p/302001#M255131</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-09-18T19:25:43Z</dc:date>
    </item>
  </channel>
</rss>

