AnsweredAssumed Answered

Static records limit in TaskEntityManager

Question asked by savanladani on Jan 4, 2016
Latest reply on May 31, 2016 by jbarrez

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
    if (taskQuery.getFirstResult() < 0 || taskQuery.getMaxResults() <= 0) {
      return Collections.EMPTY_LIST;
    int firstResult = taskQuery.getFirstResult();
    int maxResults = taskQuery.getMaxResults();
    // setting max results, limit to 20000 results for performance reasons
    List<Task> instanceList = getDbSqlSession().selectListWithRawParameterWithoutFilter(query, taskQuery, taskQuery.getFirstResult(), taskQuery.getMaxResults());