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

Marko A. Rodriguez commented on TINKERPOP3-873:
-----------------------------------------------

Yea.... {{FoldStep<Collection>}} would be good. The problem right now is that 
{{FoldStep}} can easily OME as the default is just to push everything into 
{{ArrayList}}. In OLAP (and even nasty OLTP), you can easily get a 1 Million 
object list. {{BulkSet}} at least compresses duplicates.

> 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