<?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: parent_task_id_ in ACT_RU_TASK degrading performance in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188657#M141787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm, interesting that it would have such an impact on performance. Of course, we are talking about a big number of tasks here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im not sure if there is a solution here, except for a workaround if you are not using the parent tasks… The only thing that might work is storing a flag on the task to indicate it has a parent, rather tham doing the query all the times.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2014 22:24:11 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-11-19T22:24:11Z</dc:date>
    <item>
      <title>parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188653#M141783</link>
      <description>We are using activiti 5.9In our case we do not have scenario of populating parent_task_id_ column in ACT_RU_TASK. After having considerable volume in the activiti tables.For any new signal/workflow change following query is fired before completing the task.select * from ACT_RU_TASK where PARENT_TASK</description>
      <pubDate>Thu, 09 Oct 2014 14:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188653#M141783</guid>
      <dc:creator>cduvvuri</dc:creator>
      <dc:date>2014-10-09T14:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188654#M141784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi cduvvuri,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also found same problem while doing performance testing of my application using activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone one have answer about same please post it, it will be quit helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prakash&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 06:41:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188654#M141784</guid>
      <dc:creator>cduvvuri</dc:creator>
      <dc:date>2014-10-10T06:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188655#M141785</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;Which DB engine do you use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(There is similar problem with oracle &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/1017239/how-do-null-values-affect-performance-in-a-database-search" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/1017239/how-do-null-values-affect-performance-in-a-database-search&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 06:49:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188655#M141785</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-10-10T06:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188656#M141786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi martin.grofcik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used to have PARENT_TASK_ID_ null in all rows in ACT_RU_TASK table and I was facing same issue with large data in this table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have resolved it by one hack. I have inserted TASK_ID_ which is primary key's value into PARENT_TASK_ID_ with the help of trigger so PARENT_TASK_ID_ column will have unique value now and it will not create problem for oracle while searching. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway we are not using PARENT_TASK_ID_&amp;nbsp; column anywhere so it will not adversely effect our code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if someone is using PARENT_TASK_ID_&amp;nbsp; column then they can have check if TASK_ID_ and PARENT_TASK_ID_ are same then it will be root element.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This improves query performance significantly and now it is taking only 400-500 ms for fetching record compare to 4s earlier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prakash&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 05:03:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188656#M141786</guid>
      <dc:creator>paksboda</dc:creator>
      <dc:date>2014-11-12T05:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188657#M141787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm, interesting that it would have such an impact on performance. Of course, we are talking about a big number of tasks here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im not sure if there is a solution here, except for a workaround if you are not using the parent tasks… The only thing that might work is storing a flag on the task to indicate it has a parent, rather tham doing the query all the times.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 22:24:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188657#M141787</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-11-19T22:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188658#M141788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have implemented below solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"I have inserted TASK_ID_ which is primary key's value into PARENT_TASK_ID_ with the help of trigger so PARENT_TASK_ID_ column will have unique value now and it will not create problem for oracle while searching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway we are not using PARENT_TASK_ID_ column anywhere so it will not adversely effect our code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if someone is using PARENT_TASK_ID_ column then they can have check if TASK_ID_ and PARENT_TASK_ID_ are same then it will be root element."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far it works fine. Do you see any challenges with this approach in future?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prakash&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 05:08:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188658#M141788</guid>
      <dc:creator>paksboda</dc:creator>
      <dc:date>2014-12-03T05:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188659#M141789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As long as you are not using the parent task id, I would guess it's fine&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 15:27:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188659#M141789</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-12-05T15:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188660#M141790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even in that case, that my be fixed by a hint. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to have database specific hints ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 13:01:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188660#M141790</guid>
      <dc:creator>smirzai</dc:creator>
      <dc:date>2014-12-08T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188661#M141791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Joram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 06:54:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188661#M141791</guid>
      <dc:creator>paksboda</dc:creator>
      <dc:date>2014-12-29T06:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188662#M141792</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;We need to use PARENT_TASK_ID_ in our logic to get predecessor of the current task. Currently it is always null.. what can I do to populate the actual PARENT_TASK_ID_ in this table ? And what is the reason behind activiti inserting its value as null, shouldn't it have parent task id by default ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also our real requirement is to find the previous user task in a workflow which i can do by querying on history table (sort by start time )…But i have no means to find out if 2 tasks are executing in parallel (as in a subprocess) or in a serial fashion. As in both cases one task will happen before the other. I am hoping by checking that the 2 tasks have same parent task id I can differentiate between parallel/serial tasks &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 16:16:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188662#M141792</guid>
      <dc:creator>solanki</dc:creator>
      <dc:date>2015-05-28T16:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: parent_task_id_ in ACT_RU_TASK degrading performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188663#M141793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The parent task id is used for sub tasks in Activiti. So we don't store the previous task in the parent task id, because in most cases there's no parent-child relationship there. By reading the BpmnModel representation of the BPMN XML you would be able to determine the previous task as well, and you could determine if there's parallel behaviour or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 17:36:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/parent-task-id-in-act-ru-task-degrading-performance/m-p/188663#M141793</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-05-28T17:36:44Z</dc:date>
    </item>
  </channel>
</rss>

