<?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: Static records limit in TaskEntityManager in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228259#M181389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;would this solve your problem (just been merged to the engine: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/891" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/891&lt;/A&gt;&lt;SPAN&gt;)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 10:31:22 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-05-31T10:31:22Z</dc:date>
    <item>
      <title>Static records limit in TaskEntityManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228256#M181386</link>
      <description>Hi,I don't understand why there is 20000 max records limit in TaskEntityManager while fetching task list. why we can't pass dynamic pagination value to query?// paging doesn't work for combining task instances and variables due to an outer join, so doing it in-memory&amp;nbsp;&amp;nbsp;&amp;nbsp; if (taskQuery.getFirstResult(</description>
      <pubDate>Mon, 04 Jan 2016 13:28:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228256#M181386</guid>
      <dc:creator>savanladani</dc:creator>
      <dc:date>2016-01-04T13:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Static records limit in TaskEntityManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228257#M181387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is for fetching variables only when doing task queries. 20K should be enough (you'll have performance issues otherwise). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you are right, it should be configurable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 09:55:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228257#M181387</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-01-05T09:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Static records limit in TaskEntityManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228258#M181388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We hit this issue with historic and active tasks in an environment were we had created a lot of tasks with variables. The highest index you can get back decreases the start index you can pull back and creates unexpected REST responses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Max results returned = 20,000 / (average task variables + average process variables)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A static/configurable option here wouldn't help if you want to go past the 20,000 limit it will only return the count.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eg. &amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"taskVariables" : [], "start" : 20001, "size" : 10, "includeTaskLocalVariables" : true}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a fix for this which uses the same behaviour as includeTaskLocalVariables":false and then makes calls out to get the Task and Process variables for each task returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is available on &lt;/SPAN&gt;&lt;A href="https://github.com/dgit-hub/Activiti/commit/7452c4555c35a3cf7bbdcda9b0aaad4df1760f11" rel="nofollow noopener noreferrer"&gt;https://github.com/dgit-hub/Activiti/commit/7452c4555c35a3cf7bbdcda9b0aaad4df1760f11&lt;/A&gt;&lt;SPAN&gt; and should merge cleanly to any of the 5.x releases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When querying with "start" &amp;gt; 10,000 the added db hit of the extra queries is still significantly faster than the memory filtering overhead of processing 10,000 results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After applying the fix it looks like Executions and Process Instances will suffer from the same issue. It wouldn't take much to extend the fix to include them too. &amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;engine/impl/persistence/entity/ExecutionEntityManager.java:&amp;nbsp;&amp;nbsp;&amp;nbsp; executionQuery.setMaxResults(20000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;engine/impl/persistence/entity/HistoricProcessInstanceEntityManager.java:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; historicProcessInstanceQuery.setMaxResults(20000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 02:39:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228258#M181388</guid>
      <dc:creator>arandall</dc:creator>
      <dc:date>2016-05-26T02:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Static records limit in TaskEntityManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228259#M181389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;would this solve your problem (just been merged to the engine: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/891" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/891&lt;/A&gt;&lt;SPAN&gt;)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 10:31:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/static-records-limit-in-taskentitymanager/m-p/228259#M181389</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-31T10:31:22Z</dc:date>
    </item>
  </channel>
</rss>

