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

Tobias Bocanegra commented on SLING-799:
----------------------------------------

> now I would prefer to use a sorted query
why a query? iterating over the child nodes should be sufficient.

> An ordered collection in jcr only means that it is "somehow" ordered. 
i disagree. i would leverage the ordering capability of the repository and rely 
on the node ordering.
this has also the advantage that you don't need to have (and calculate) a 
sequence number, which can be difficult to obtain in the cluster scenario.

> Job Folder is not ordered and results in unordered queue
> --------------------------------------------------------
>
>                 Key: SLING-799
>                 URL: https://issues.apache.org/jira/browse/SLING-799
>             Project: Sling
>          Issue Type: Bug
>          Components: Event
>    Affects Versions: Extensions Event 2.0.2
>            Reporter: Tobias Bocanegra
>
> check code of
> AbstractRepositoryEventHandler.ensureRepositoryPath()
>     /**
>      * Check if the repository path already exists. If not, create it.
>      */
>     protected Node ensureRepositoryPath()
>     throws RepositoryException {
>         final Node node = JcrResourceUtil.createPath(this.repositoryPath,
>                                    EventHelper.NODETYPE_FOLDER,
>                                    EventHelper.NODETYPE_FOLDER,
>                                    this.writerSession, true);
>         return node;
>     }
> this should use a "sling:OrderedFolder"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to