<?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 Performance on JPA with BPMN. (How updates are executed  on a JPA Entity during a flow) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/performance-on-jpa-with-bpmn-how-updates-are-executed-on-a-jpa/m-p/205695#M158825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Performance on JPA with BPMN. (How updates are executed&amp;nbsp; on a JPA Entity during a flow)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't fully understand how updates are generated when Activiti manages a JPA Entity. I have this feature working, but I would like to know if there is a performance improvement to apply on this point by changing some configuration. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The scenario is as follows: Let's say I have a flow called remodelHouse.bpmn and a 'House' Entity, which I pass to Activiti&amp;nbsp; when I execute the method startProcessInstanceByKey(). In this flow, I have a task which changes the House attribute 'numberOfRooms' and another different task which changes the House attribute 'wallsColor'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti manages the flow as a transaction, but when I inspect the updates issued by Activiti, I see 2 different updates, as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;update House set numberOfRooms = 'newNumberOfRoom' where…&lt;BR /&gt;update House set wallsColor = 'newColor' where…&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And what I would like to be issued is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;update House set numberOfRooms = 'newNumberOfRoom', wallsColor = 'newColor'&amp;nbsp; where…&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is possible to tell Activity to apply all changes on an Entity all together at the end of the flow, in order to avoid the extra statements?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2014 20:25:18 GMT</pubDate>
    <dc:creator>leac87</dc:creator>
    <dc:date>2014-12-04T20:25:18Z</dc:date>
    <item>
      <title>Performance on JPA with BPMN. (How updates are executed  on a JPA Entity during a flow)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-on-jpa-with-bpmn-how-updates-are-executed-on-a-jpa/m-p/205695#M158825</link>
      <description>Performance on JPA with BPMN. (How updates are executed&amp;nbsp; on a JPA Entity during a flow)Hi everyone,I don't fully understand how updates are generated when Activiti manages a JPA Entity. I have this feature working, but I would like to know if there is a performance improvement to apply on this point</description>
      <pubDate>Thu, 04 Dec 2014 20:25:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-on-jpa-with-bpmn-how-updates-are-executed-on-a-jpa/m-p/205695#M158825</guid>
      <dc:creator>leac87</dc:creator>
      <dc:date>2014-12-04T20:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Performance on JPA with BPMN. (How updates are executed  on a JPA Entity during a flow)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-on-jpa-with-bpmn-how-updates-are-executed-on-a-jpa/m-p/205696#M158826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently, we don't support combining updates into one update statement, so you'll see multiple updates to the same entity. But I agree it would be a nice feature to have.&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>Fri, 05 Dec 2014 12:31:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-on-jpa-with-bpmn-how-updates-are-executed-on-a-jpa/m-p/205696#M158826</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-12-05T12:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Performance on JPA with BPMN. (How updates are executed  on a JPA Entity during a flow)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-on-jpa-with-bpmn-how-updates-are-executed-on-a-jpa/m-p/205697#M158827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah ok I see, thank you for your response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:11:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-on-jpa-with-bpmn-how-updates-are-executed-on-a-jpa/m-p/205697#M158827</guid>
      <dc:creator>leac87</dc:creator>
      <dc:date>2014-12-05T14:11:14Z</dc:date>
    </item>
  </channel>
</rss>

