You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2016/01/12 22:28:39 UTC
[jira] [Commented] (TINKERPOP-763) IsStep broken when profiling is
enabled.
[ https://issues.apache.org/jira/browse/TINKERPOP-763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15094985#comment-15094985 ]
Marko A. Rodriguez commented on TINKERPOP-763:
----------------------------------------------
This happens because the internal traversal never has {{next()}} called, only {{hasNext()}}, thus, it does NOT generate traversers. As such, I don't know what to do. I don't want to {{next()}} cause that is a pointless computation. However, I think what it does is "right" ... the last {{IsStep}} did NOT produce traversers as its a "filter" and thus, 0 count and 0 traversers. It is doing what it says! I will close, if this is NOT cool, please reopen with recommendations.
> IsStep broken when profiling is enabled.
> ----------------------------------------
>
> Key: TINKERPOP-763
> URL: https://issues.apache.org/jira/browse/TINKERPOP-763
> Project: TinkerPop
> Issue Type: Bug
> Components: process
> Affects Versions: 3.0.2-incubating
> Reporter: Bob Briody
> Assignee: Marko A. Rodriguez
> Priority: Minor
> Fix For: 3.1.1-incubating
>
>
> The .profile()-Step and the is()-Step do not play well together. Results are not emitted when profiling is enabled.
> Perhaps this is the same type of issue that caused problems between the Profile and Where/Match steps???
> {code}
> gremlin> graph = TinkerFactory.createModern()
> ==>tinkergraph[vertices:6 edges:6]
> gremlin> g = graph.traversal()
> ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
> gremlin> g.V().hasLabel("person").where(both("knows").values("age").is(lt(30)))
> ==>v[1]
> ==>v[2]
> ==>v[4]
> gremlin> g.V().hasLabel("person").where(both("knows").values("age").is(lt(30))).profile().cap(TraversalMetrics.METRICS_KEY)
> ==>Traversal Metrics
> Step Count Traversers Time (ms) % Dur
> =============================================================================================================
> TinkerGraphStep(vertex,[~label.eq(person)]) 4 4 8.813 27.73
> TraversalFilterStep([VertexStep(BOTH,[knows],ve... 3 3 0.597 1.88
> VertexStep(BOTH,[knows],vertex) 3 3 0.108
> PropertiesStep([age],value) 3 3 0.080
> IsStep(lt(30)) 0 0 0.289
> SideEffectCapStep([~metrics]) 1 1 22.367 70.39
> >TOTAL - - 31.777 -
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)