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

Daniel Kuppitz commented on TINKERPOP3-873:
-------------------------------------------

{quote}
though we have a rule that order between steps isn't guaranteed to be preserved
{quote}

Another (unwritten) rule is, that {{order()}} should always be the last step 
(which is more or less a consequence of the aforementioned rule). Thus, instead 
of:

{code}
g.V().order().by('name', incr).fold()
{code}

...you should actually use:

{code}
g.V().fold().order(local).by('name', incr)
{code}

> FoldStep should default to using BulkSet for efficiency.
> --------------------------------------------------------
>
>                 Key: TINKERPOP3-873
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-873
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.0.1-incubating
>            Reporter: Marko A. Rodriguez
>            Assignee: Marko A. Rodriguez
>              Labels: breaking
>             Fix For: 3.1.0-incubating
>
>
> This is easy, the problem is that:
> {code}
> GraphTraversal<S,List<E>> fold()
> {code}
> would become:
> {code}
> GraphTraversal<S,Set<E>> fold()
> {code}
> We could make {{BulkSet}} implement List as it does in fact contain all the 
> elements inserted, just not in their respective insert order. Does {{List}} 
> require that the insert order be preserved? {{UnorderedList}} (is that a 
> thing?)



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

Reply via email to