<?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: Document Creation performance issue in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63915#M21864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide some more detail:&lt;/P&gt;&lt;P&gt;a) Using some client application - uploading/updating the documents? what is the client application based on java/python etc..? Also what protocol is used - REST- browser binding/REST atom pub/web services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Can you check if database is causing the delay running a simple cmis GET query using cmisselector = properties or cmisselector =objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) Also is there any way you can profile the application using - Yourkit etc so that we know what exactly is taking time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) In the query - can you provide the noderef of the folder and not the path where you would like to upload the document.(and see if you get good performance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) Try to make direct REST call from POSTman or any REST client:&lt;/P&gt;&lt;P&gt;First get alf_ticket:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://localhost:18080/alfresco/s/api/login?u=SSO4&amp;amp;pw=Password1" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:18080/alfresco/s/api/login?u=SSO4&amp;amp;pw=Password1&lt;/A&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;ticket&amp;gt;TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b&amp;lt;/ticket&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then do a POST call&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;as below screenshot)&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:18080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=edae3809-e4ce-4078-be02-059bf816dfec&amp;amp;cmisaction=createDocument&amp;amp;overwriteFlag=true&amp;amp;propertyId[0]=cmis:name&amp;amp;propertyValue[0]=fileNamet&amp;amp;propertyId[1]=cmis:objectTypeId&amp;amp;propertyValue[1]=cmis:document&amp;amp;propertyId[2]=cmis:secondaryObjectTypeIds&amp;amp;propertyValue[2]=P:cm:titled&amp;amp;propertyId[3]=cm:title&amp;amp;propertyValue[3]=TestFileTitle1&amp;amp;alf_ticket=TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b" rel="nofollow noopener noreferrer"&gt;http://localhost:18080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=edae3809-e4ce-4078-be02-059bf816dfec&amp;amp;cmisaction=createDocument&amp;amp;overwriteFlag=true&amp;amp;propertyId[0]=cmis:name&amp;amp;propertyValue[0]=fileNamet&amp;amp;propertyId[1]=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;bjectTypeId&amp;amp;propertyValue[1]=cmis:document&amp;amp;propertyId[2]=cmis:secondaryObjectTypeIds&amp;amp;propertyValue[2]=P:cm:titled&amp;amp;propertyId[3]=cm:title&amp;amp;propertyValue[3]=TestFileTitle1&amp;amp;alf_ticket=TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24474_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to ensure that login/getting ticket is 1st step and main upload is second step -&lt;/P&gt;&lt;P&gt;to identify if authentication is taking time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2018 15:58:53 GMT</pubDate>
    <dc:creator>ranjeetsi</dc:creator>
    <dc:date>2018-12-26T15:58:53Z</dc:date>
    <item>
      <title>Document Creation performance issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63913#M21862</link>
      <description>I am using Alfresco Community Edition 5.0 and Postgresql 9.3.In our application, we are creating all the documents in the root folder using cmis&amp;nbsp;API.This led to the slowness in the process of creating or updating the documents in Alfresco.During document create/update,&amp;nbsp;it is using below&amp;nbsp;query which</description>
      <pubDate>Mon, 24 Dec 2018 09:19:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63913#M21862</guid>
      <dc:creator>devkinandanchau</dc:creator>
      <dc:date>2018-12-24T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Document Creation performance issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63914#M21863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't think that changing destination path will resolve your problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference of compnayhome is used by other services of Alfresco as well, so it is not recommended to make any changes in Database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, using CMIS you can always change the path (from CompanyHome) to where you want to create / update the documents in Alfresco e.g.&amp;nbsp;/Sites/test/documentLibrary/My Folder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kintu&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2018 13:48:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63914#M21863</guid>
      <dc:creator>kintu_barot</dc:creator>
      <dc:date>2018-12-26T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Document Creation performance issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63915#M21864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide some more detail:&lt;/P&gt;&lt;P&gt;a) Using some client application - uploading/updating the documents? what is the client application based on java/python etc..? Also what protocol is used - REST- browser binding/REST atom pub/web services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Can you check if database is causing the delay running a simple cmis GET query using cmisselector = properties or cmisselector =objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) Also is there any way you can profile the application using - Yourkit etc so that we know what exactly is taking time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) In the query - can you provide the noderef of the folder and not the path where you would like to upload the document.(and see if you get good performance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) Try to make direct REST call from POSTman or any REST client:&lt;/P&gt;&lt;P&gt;First get alf_ticket:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://localhost:18080/alfresco/s/api/login?u=SSO4&amp;amp;pw=Password1" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:18080/alfresco/s/api/login?u=SSO4&amp;amp;pw=Password1&lt;/A&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;ticket&amp;gt;TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b&amp;lt;/ticket&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then do a POST call&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;as below screenshot)&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:18080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=edae3809-e4ce-4078-be02-059bf816dfec&amp;amp;cmisaction=createDocument&amp;amp;overwriteFlag=true&amp;amp;propertyId[0]=cmis:name&amp;amp;propertyValue[0]=fileNamet&amp;amp;propertyId[1]=cmis:objectTypeId&amp;amp;propertyValue[1]=cmis:document&amp;amp;propertyId[2]=cmis:secondaryObjectTypeIds&amp;amp;propertyValue[2]=P:cm:titled&amp;amp;propertyId[3]=cm:title&amp;amp;propertyValue[3]=TestFileTitle1&amp;amp;alf_ticket=TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b" rel="nofollow noopener noreferrer"&gt;http://localhost:18080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=edae3809-e4ce-4078-be02-059bf816dfec&amp;amp;cmisaction=createDocument&amp;amp;overwriteFlag=true&amp;amp;propertyId[0]=cmis:name&amp;amp;propertyValue[0]=fileNamet&amp;amp;propertyId[1]=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;bjectTypeId&amp;amp;propertyValue[1]=cmis:document&amp;amp;propertyId[2]=cmis:secondaryObjectTypeIds&amp;amp;propertyValue[2]=P:cm:titled&amp;amp;propertyId[3]=cm:title&amp;amp;propertyValue[3]=TestFileTitle1&amp;amp;alf_ticket=TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24474_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to ensure that login/getting ticket is 1st step and main upload is second step -&lt;/P&gt;&lt;P&gt;to identify if authentication is taking time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2018 15:58:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63915#M21864</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-12-26T15:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Document Creation performance issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63916#M21865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As advise, don't use&amp;nbsp;&lt;SPAN&gt;/&amp;nbsp;&lt;/SPAN&gt;, better, place them under /MyApp/&lt;/P&gt;&lt;P&gt;Besides, you should distribute your&amp;nbsp;documents uploads in some folder structure under your application rootpath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a non-written rule that you should not have more than let's say 1000 documents in each level folder. Then your alfresco queries probably perfom better (or at least something better). Typical intermediate folder structures are yy/MM/dd based and the structure may depend on how many documents you upload per day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation date based is valid for online daily uploads with no more than 1 thousand documents.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/MyApp/2018/12/26/doc1.pdf&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/MyApp/2018/12/26/doc2.pdf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you plan to some bulk upload some days, you can distribute them volume based:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/MyApp/Vol0001/ --&amp;gt; 1000 docs&lt;/P&gt;&lt;P&gt;/MyApp/Vol0002/ --&amp;gt; 1000 docs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your application must create these hierchies via CMIS for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2018 18:00:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-creation-performance-issue/m-p/63916#M21865</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2018-12-26T18:00:58Z</dc:date>
    </item>
  </channel>
</rss>

