<?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: Activiti History table causing slowness in activiti process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197672#M150802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since we are using activti Rest API , we invoke service [ /service/task/{taskId}/complete ] to complete a user task. User task completion is followed by 1 system task(sync = on). Completion of these 2 task call consumes time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We traced the call via dynatrace, so below query is taking around ~3 sec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from ( select a.*, ROWNUM rnum from (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select RES.*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ACT_HI_ACTINST RES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp; RES.EXECUTION_ID_ = ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and RES.ACT_ID_ = ?&amp;nbsp; and RES.END_TIME_ is null&amp;nbsp;&amp;nbsp; order by RES.ID_ asc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) a where ROWNUM &amp;lt; ?) where rnum&amp;nbsp; &amp;gt;= ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are not sure why ACT_HI_* tables is referred for task. This is a Activiti internal query call. I assume this might be used to update task to ACT_HI_* tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shrey Srivastava&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 15:37:52 GMT</pubDate>
    <dc:creator>shrey</dc:creator>
    <dc:date>2015-04-08T15:37:52Z</dc:date>
    <item>
      <title>Activiti History table causing slowness in activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197670#M150800</link>
      <description>Hi,we have been using activiti per 6 month with history enabled and we are using Oracle DB for the activiti, but recently got some performance issues.following are the observations, what I got from the performance stand point while performance test of our applicationwe have seen that the records are</description>
      <pubDate>Fri, 03 Apr 2015 14:11:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197670#M150800</guid>
      <dc:creator>anilknayak</dc:creator>
      <dc:date>2015-04-03T14:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti History table causing slowness in activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197671#M150801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you need all the historical data? You can change the history level if you don't need as much data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In all the text above you speak about slowness and performance, but I don't see where exactly you see this happening? Process start? Task list? What is your environment?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:14:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197671#M150801</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-04-07T13:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti History table causing slowness in activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197672#M150802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since we are using activti Rest API , we invoke service [ /service/task/{taskId}/complete ] to complete a user task. User task completion is followed by 1 system task(sync = on). Completion of these 2 task call consumes time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We traced the call via dynatrace, so below query is taking around ~3 sec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from ( select a.*, ROWNUM rnum from (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select RES.*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ACT_HI_ACTINST RES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp; RES.EXECUTION_ID_ = ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and RES.ACT_ID_ = ?&amp;nbsp; and RES.END_TIME_ is null&amp;nbsp;&amp;nbsp; order by RES.ID_ asc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) a where ROWNUM &amp;lt; ?) where rnum&amp;nbsp; &amp;gt;= ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are not sure why ACT_HI_* tables is referred for task. This is a Activiti internal query call. I assume this might be used to update task to ACT_HI_* tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shrey Srivastava&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 15:37:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197672#M150802</guid>
      <dc:creator>shrey</dc:creator>
      <dc:date>2015-04-08T15:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti History table causing slowness in activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197673#M150803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it is indeed needed for updating the history data for that task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So that being said, one option is to clean out old data, or to lower the history level. Another option might be to check why this particulary query is so slow, and add a new index to speed it up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:01:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197673#M150803</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-04-14T12:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti History table causing slowness in activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197674#M150804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We ran into the same issues with using history tables. Our requirement is to store all historic processing data and make it accessible to the application. Has anyone resolved it by adding indexes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Ivan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:24:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197674#M150804</guid>
      <dc:creator>ivan_activiti</dc:creator>
      <dc:date>2016-02-25T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti History table causing slowness in activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197675#M150805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indices will help if you have a particular use case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if it's simply too much data, you'll need to solve it differently (database level, typically)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:28:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197675#M150805</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-01T20:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti History table causing slowness in activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197676#M150806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes we did add few indices. I can share those here asap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that it can help with Activiti release as well. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 18:22:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197676#M150806</guid>
      <dc:creator>shrey</dc:creator>
      <dc:date>2016-04-19T18:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti History table causing slowness in activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197677#M150807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Add an index on ACT_HI_TASKINST(PROC_INST_ID_) —-&amp;gt; added as part of 5.18&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Add an index on ACT_HI_PROCINST(SUPER_PROCESS_INSTANCE_ID_)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 11:37:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-history-table-causing-slowness-in-activiti-process/m-p/197677#M150807</guid>
      <dc:creator>shrey</dc:creator>
      <dc:date>2016-04-29T11:37:12Z</dc:date>
    </item>
  </channel>
</rss>

