Add count() to Queries to support pagination
--------------------------------------------
Key: JBPM-2625
URL:
https://jira.jboss.org/jira/browse/JBPM-2625
Project: jBPM
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.x
Reporter: Peter Horvath
Queries provide a powerful interface to access JBPM tasks, jobs, deployments, etc;
currently the only way you can get the number of results that match a filter is to load
the whole list, and determine its size by calling .size() method - this is extremely
inefficient and can even cause OutOfMemoryError (e.g. a HistoryActivityInstanceQuery could
return tens of thousands elements)
count() could be used with page(int firstResult, int maxResults) method to create a
paginated result list where you can display the number of pages
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira