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

Daniel Kuppitz commented on TINKERPOP-1992:
-------------------------------------------

It actually happens to any reducing step in {{group()}}'s value selector.

{code}
gremlin> g.V().group().by().by(bothE().fold()).profile()
==>Traversal Metrics
Step                                                               Count  
Traversers       Time (ms)    % Dur
=============================================================================================================
TinkerGraphStep(vertex,[])                                             6        
   6           0.053    13.94
GroupStep(identity,[VertexStep(BOTH,edge), Prof...                     1        
   1           0.329    86.06
  VertexStep(BOTH,edge)                                               12        
  12           0.084
  FoldStep                                                             6        
   6          -0.063
                                            >TOTAL                     -        
   -           0.383        -
gremlin> g.V().group().by().by(bothE().values('weight').sum()).profile()
==>Traversal Metrics
Step                                                               Count  
Traversers       Time (ms)    % Dur
=============================================================================================================
TinkerGraphStep(vertex,[])                                             6        
   6           0.058    10.54
GroupStep(identity,[VertexStep(BOTH,edge), Prof...                     1        
   1           0.492    89.46
  VertexStep(BOTH,edge)                                               12        
  12           0.104
  PropertiesStep([weight],value)                                      12        
  12           0.086
  SumGlobalStep                                                        6        
   6          -0.160
                                            >TOTAL                     -        
   -           0.550        -
{code}

> count has negative time in profile
> ----------------------------------
>
>                 Key: TINKERPOP-1992
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1992
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.3.3, 3.2.9
>            Reporter: Robert Dale
>            Priority: Minor
>
> {noformat}
> gremlin> g.V().group().by().by(bothE().count()).profile()
> ==>Traversal Metrics
> Step                                                               Count  
> Traversers       Time (ms)    % Dur
> =============================================================================================================
> TinkerGraphStep(vertex,[])                                         19172      
>  19172           4.957     5.24
> GroupStep(identity,[VertexStep(BOTH,edge), Prof...                     1      
>      1          89.696    94.76
>   VertexStep(BOTH,edge)                                            84812      
>  84812          50.723
>   CountGlobalStep                                                  19172      
>  19172         -39.649
>                                             >TOTAL                     -      
>      -          94.654        -
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to