[ 
https://issues.apache.org/jira/browse/SLING-5512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144356#comment-15144356
 ] 

Marius Petria commented on SLING-5512:
--------------------------------------

The problem is that without these APIs visualization/counting of jobs becomes 
quite expensive in cases of tens of thousands of jobs. In order to still be 
efficient one needs to store a parallel collection of nodes that represent the 
jobs for visualization and keep it in sync with the job items. Is that the 
preferred alternative?

> Improve JobManager.findJobs querying by supporting skip items
> -------------------------------------------------------------
>
>                 Key: SLING-5512
>                 URL: https://issues.apache.org/jira/browse/SLING-5512
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Marius Petria
>
> Currently findJobs API only accepts a limit parameter to restrict the size of 
> the retrieved collection. In order to better support paged views of jobs we 
> should also support a skip parameter. 
> Also it would be very useful to have a countJobs API aswell.
> [1] 
> https://sling.apache.org/apidocs/sling8/org/apache/sling/event/jobs/JobManager.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to