<?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 Solution: improve performace in Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236653#M189783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;when you use Alfresco common problem is the &lt;/SPAN&gt;&lt;STRONG&gt;performance&lt;/STRONG&gt;&lt;SPAN&gt;! Here I did not mention the issue because the hardware configuration server can normally meet for 100-1000 users that are written pretty much on the forum so I just put out a solution but it is very useful to the development and location management system my Alfresco!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Common problem is when you completed the task pane open&amp;nbsp; :mrgreen:&amp;nbsp; then all tasks will be completed with status paging load on your screen at this time is completed, the panel TASKs any action on your next (e.g: you click on page 2 or click menu on the left navigator) then load operation completed all tasks are done again this makes the performance is limited!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution here is to put more load conditions for the tasks can be completed by the date created (can only load the tasks completed in two months), provided that you can put in xml file (which can be done by the code read to get info from param xml file) for editing upon request from the end users :mrgreen:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;View file JBPMEngine.java (press Ctr+R in Eclipse):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is string for QUERY get tasks Completed in 2 month:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;private final static String COMPLETED_TASKS_QUERY =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"select ti from org.jbpm.taskmgmt.exe.TaskInstance as ti " +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"where ti.actorId = :actorId " +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"and ti.isOpen = false " +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"and to_char(sysdate,'yyddd')-to_char(ti.end,'yyddd')&amp;lt;=60 "; // vinaxwater added&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;SPAN&gt;this is string for QUERY get 60 rows tasks completed to the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;private final static String COMPLETED_TASKS_QUERY =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"select ti from org.jbpm.taskmgmt.exe.TaskInstance as ti " +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"where ti.actorId = :actorId " +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"and ti.isOpen = false " +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"and rownum &amp;lt;= :rw "; // vinaxwater added&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;SPAN&gt;find method findCompletedTaskInstances:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;After row: query.setString("actorId", actorId);&lt;BR /&gt;Add:&amp;nbsp;&amp;nbsp;&amp;nbsp; query.setString("rw", "60"); // vinaxwater added&lt;SPAN class="line-numbers-rows"&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;SPAN&gt;The conditions you can start with the fields in tables JBPM_TASKINSTANCE!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can change the hard conditions by reading from the xml file for conditions when requested changes are not necessarily re-build source that just change the xml file for effect :mrgreen: and you can also apply in process or task to load the content in Alfresco :mrgreen:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is useful for improving performance using Alfresco very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I am using Alfresco 2.9B build version. No way affect the search content in Alfresco system because otherwise use search module :mrgreen:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vinaxwater&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Apr 2010 04:07:10 GMT</pubDate>
    <dc:creator>vinaxwater</dc:creator>
    <dc:date>2010-04-05T04:07:10Z</dc:date>
    <item>
      <title>Solution: improve performace in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236653#M189783</link>
      <description>when you use Alfresco common problem is the performance! Here I did not mention the issue because the hardware configuration server can normally meet for 100-1000 users that are written pretty much on the forum so I just put out a solution but it is very useful to the development and location manage</description>
      <pubDate>Mon, 05 Apr 2010 04:07:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236653#M189783</guid>
      <dc:creator>vinaxwater</dc:creator>
      <dc:date>2010-04-05T04:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Solution: improve performace in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236654#M189784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did it make the performance better? How many times?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 17:53:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236654#M189784</guid>
      <dc:creator>nhienmai</dc:creator>
      <dc:date>2010-06-16T17:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Solution: improve performace in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236655#M189785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And if you have what you think is useful code then please contribute it so it can go into the base product.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 18:00:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236655#M189785</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-06-16T18:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Solution: improve performace in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236656#M189786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi friends,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think in panel Task Completed load all is useful for performance! it ought to load according to parameter input form user (e.x it can date) i think useful for performance of system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before it's always load all Task Completed of user current login in system ( can 500 record ) but present it only load 50 record&amp;nbsp; ( Task Complete in one month ) in session login&amp;nbsp; :roll:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vinaxwater&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 03:17:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solution-improve-performace-in-alfresco/m-p/236656#M189786</guid>
      <dc:creator>vinaxwater</dc:creator>
      <dc:date>2010-06-17T03:17:03Z</dc:date>
    </item>
  </channel>
</rss>

