<?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 Re: Get children of a node faster in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297004#M250134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any suggestion or idea? I'm still having the problem… &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2015 15:00:32 GMT</pubDate>
    <dc:creator>spilby</dc:creator>
    <dc:date>2015-10-08T15:00:32Z</dc:date>
    <item>
      <title>Get children of a node faster</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297003#M250133</link>
      <description>I'm using the alfresco api on my Java backed webscript. I have an uuid, and I do a new NodeRef with this uuid and then I use getChildAssoc from nodeService to obtain all the direct child nodes. NodeRef nodeRef = new NodeRef("workspace://SpacesStore/" + uuid);List&amp;lt;ChildAssociationRef&amp;gt; childRefL</description>
      <pubDate>Mon, 17 Aug 2015 21:58:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297003#M250133</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2015-08-17T21:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get children of a node faster</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297004#M250134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any suggestion or idea? I'm still having the problem… &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:00:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297004#M250134</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2015-10-08T15:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get children of a node faster</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297005#M250135</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;SPAN&gt;Can you please provide the server H/W &amp;amp; tomcat configuration as well?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 05:21:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297005#M250135</guid>
      <dc:creator>muralidharand</dc:creator>
      <dc:date>2015-10-09T05:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get children of a node faster</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297006#M250136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried using CMIS query for that? There is quite interesting possibility to select by path:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;select * &lt;BR /&gt;from cmis:document &lt;BR /&gt;where contains('PATH:\"/app:company_home/st:sites/cm:MySite/cm:documentLibrary/cm:MyFolder/*"')&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;You can run this query using &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.service.cmr.search.SearchService&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; or a webscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;/share/proxy/alfresco/slingshot/node/search?q=&amp;lt;query&amp;gt;&amp;amp;lang=cmis-alfresco&amp;amp;store=workspace%3A%2F%2FSpacesStore&amp;amp;maxResults=1000&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;which is basically the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure about performance, but I guess it should be slightly better. And you should know exact path to the parent folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find a bit more info here: &lt;/SPAN&gt;&lt;A href="http://pavelmakhov.com/2015/10/cmis-path-query/" rel="nofollow noopener noreferrer"&gt;http://pavelmakhov.com/2015/10/cmis-path-query/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 09:10:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297006#M250136</guid>
      <dc:creator>streetturtle</dc:creator>
      <dc:date>2015-10-27T09:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get children of a node faster</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297007#M250137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'll add when using CMIS, there are some options in the OperationContext you can enable/disable/configure that would also make (sometimes significant) performance improvement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OperationContext usage example: &lt;/SPAN&gt;&lt;A href="https://chemistry.apache.org/java/examples/example-list-folder.html" rel="nofollow noopener noreferrer"&gt;https://chemistry.apache.org/java/examples/example-list-folder.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Options: &lt;/SPAN&gt;&lt;A href="https://chemistry.apache.org/java/0.12.0/maven/apidocs/org/apache/chemistry/opencmis/client/api/OperationContext.html" rel="nofollow noopener noreferrer"&gt;https://chemistry.apache.org/java/0.12.0/maven/apidocs/org/apache/chemistry/opencmis/client/api/OperationContext.html&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 16:37:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297007#M250137</guid>
      <dc:creator>dhartford</dc:creator>
      <dc:date>2015-10-29T16:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get children of a node faster</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297008#M250138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know if contains is faster for some reason, but CMIS has the IN_FOLDER() clause for this purpose.&amp;nbsp; So if you have the folder's ID it's simply:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;select * from cmis:document where IN_FOLDER('folderid')&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, generally, don't select * when you only need a few properties (like maybe all you need is cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId and cmis:name).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:29:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-children-of-a-node-faster/m-p/297008#M250138</guid>
      <dc:creator>aweber1nj</dc:creator>
      <dc:date>2015-11-13T14:29:42Z</dc:date>
    </item>
  </channel>
</rss>

