Seeking feedback on tinkerpop gremlin explain and profile from db providers #2670
Replies: 1 comment 2 replies
-
Hey @andreachild! 👋 I'm here to help you with any questions, bugs, or contributions while we wait for a human maintainer. Hello @andreachild, Here are some insights from the HugeGraph community regarding your questions on Tinkerpop Gremlin's Explain and Profile functionalities:
Your proposed changes to TraversalExplanation and Metrics sound promising and could indeed provide more flexibility for graph database providers. Allowing providers to group applied TraversalStrategies and specify custom metric aggregation logic would likely be beneficial. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hello Everyone,
I have been looking at the Explain and Profile implementations in Tinkerpop gremlin-core and how to improve the flexibility of its output for Tinkerpop 4.0 for graph db providers.
My questions to the HugeGraph community are:
For Explain, I am thinking about modifying TraversalExplanation to allow providers to more easily group applied TraversalStrategies into intermediate traversals so that the output can contain the Original Traversal, X-Intermediate Traversals, and then Final Traversal based on how the provider decides to group the strategies.
For Profile, I am wondering if it would be useful to change Metrics from storing data in two maps into a single map, allowing db providers to specify custom metric aggregation logic via BinaryOperator (ie. sum, average, min, max, String concatenation), and then changing toString to dynamically determine the output table headers based on the keys of the metrics map. Or perhaps a more simpler approach would be better to allow injection of additional text before or after the default Profile output.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions