<?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 How to Improve performance of deleteProcessInstance api ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-improve-performance-of-deleteprocessinstance-api/m-p/19417#M8583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;We are using Activiti version &lt;STRONG&gt;6.0.0&lt;/STRONG&gt; java API (Integrated via spring) with History level - &lt;STRONG&gt;AUDIT&lt;/STRONG&gt;. We have a service which creates around &lt;STRONG&gt;0.5M&lt;/STRONG&gt; process instances per day and based on some condition we also close those process instances via &lt;STRONG&gt;runtimeService.deleteProcessInstance&lt;/STRONG&gt; method. We want to optimize the performace of runtimeService.deleteProcessInstance, currently it takes considerable amount of time to terminate one process instance (around 1 secs). Around &lt;STRONG&gt;40&lt;/STRONG&gt; queries are fired. Please suggest a way to improve the performance.&lt;/P&gt;&lt;P&gt;Is there a way we can achieve &lt;STRONG&gt;batching&lt;/STRONG&gt; for this ?.&lt;/P&gt;&lt;P&gt;We also tried via multiple threads but we observed very high CPU utilization. Also we need to terminate process instances in bulk and in a &lt;STRONG&gt;single transaction&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Please note that we &lt;STRONG&gt;cannot&lt;/STRONG&gt; reduce History level below AUDIT as we need audit data from ACT_HI_TASKINST table.&lt;/P&gt;&lt;P&gt;Let me know if you need any other info from me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Shailesh Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2019 19:56:23 GMT</pubDate>
    <dc:creator>shailesh257</dc:creator>
    <dc:date>2019-01-24T19:56:23Z</dc:date>
    <item>
      <title>How to Improve performance of deleteProcessInstance api ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-improve-performance-of-deleteprocessinstance-api/m-p/19417#M8583</link>
      <description>Hi,We are using Activiti version 6.0.0 java API (Integrated via spring) with History level - AUDIT. We have a service which creates around 0.5M process instances per day and based on some condition we also close those process instances via runtimeService.deleteProcessInstance method. We want to opti</description>
      <pubDate>Thu, 24 Jan 2019 19:56:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-improve-performance-of-deleteprocessinstance-api/m-p/19417#M8583</guid>
      <dc:creator>shailesh257</dc:creator>
      <dc:date>2019-01-24T19:56:23Z</dc:date>
    </item>
  </channel>
</rss>

