<?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 Why RuntimeService.deleteProcessInstance() do one by one db call for variables select and deletes? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/why-runtimeservice-deleteprocessinstance-do-one-by-one-db-call/m-p/213213#M166343</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;I recently upgraded Activiti to 5.19 and enabled bulkInsertEnabled in processEngineConfiguration. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I really like this feature and thanks for providing which really improved performance of my app. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using RuntimeService.deleteProcessInstance() to delete a processInstance. I got few queries and putting here to clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As part of delete process instance &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) collecting ACT_RU_VARIABLE s one by one using select query by ID_ for process instance. Why activiti is not collecting all at once(using processInstanceId or executionId) at this step?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) its deleting ACT_RU_VARIABLE one by one instead of bulk delete(using processInstanceId or executionId). Is there a way to delete all in one shot to minimise db calls?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2015 16:41:45 GMT</pubDate>
    <dc:creator>swamy2156</dc:creator>
    <dc:date>2015-11-25T16:41:45Z</dc:date>
    <item>
      <title>Why RuntimeService.deleteProcessInstance() do one by one db call for variables select and deletes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-runtimeservice-deleteprocessinstance-do-one-by-one-db-call/m-p/213213#M166343</link>
      <description>Hi,I recently upgraded Activiti to 5.19 and enabled bulkInsertEnabled in processEngineConfiguration. I really like this feature and thanks for providing which really improved performance of my app. I am using RuntimeService.deleteProcessInstance() to delete a processInstance. I got few queries and p</description>
      <pubDate>Wed, 25 Nov 2015 16:41:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-runtimeservice-deleteprocessinstance-do-one-by-one-db-call/m-p/213213#M166343</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2015-11-25T16:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why RuntimeService.deleteProcessInstance() do one by one db call for variables select and deletes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-runtimeservice-deleteprocessinstance-do-one-by-one-db-call/m-p/213214#M166344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that's indeed an area where we can improve the number of SQL statements executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you create a JIRA issue?&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>Wed, 25 Nov 2015 18:10:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-runtimeservice-deleteprocessinstance-do-one-by-one-db-call/m-p/213214#M166344</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-11-25T18:10:23Z</dc:date>
    </item>
  </channel>
</rss>

