mchgood opened a new issue, #2165: URL: https://github.com/apache/incubator-hugegraph/issues/2165
### Problem Type (问题类型) others (please edit later) ### Before submit - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents) ### Environment (环境信息) - Server Version: 1.0.0 (Apache Release Version) - Backend: RocksDB x nodes, HDD or SSD - OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x - Data Size: xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) --> ### Your Question (问题描述) 首先感谢作者提供优秀的开源作品,我是一位 hugegraph 新手。在我的使用过程中,我该如何能判断出我执行的语句有没有命中索引? 我目前知道有 `explain` 和 `profile`。通过阅读文档,我了解了 `profile` 结果的含义,但是从 `profile`中我好像不能得到是否命中索引的结果。关于 `explain` 文档看得我晕乎乎的,希望作者能给我提供帮助。再次感谢作者提供优秀的开源作品。 比如我有这样一个查询语句 ``` g.V().hasLabel('cmdb_instance_history').has('cmdb_resources_id',within('123456')).explain() ``` 结果 ```json [ { "original": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "intermediate": [ { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "ConnectiveStrategy", "category": "DecorationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "IncidentToAdjacentStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "CountStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "MatchPredicateStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "FilterRankingStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "InlineFilterStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "AdjacentToIncidentStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "EarlyLimitStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "RepeatUnrollStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "PathRetractionStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "GraphStep(vertex,[])", "HasStep([~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "LazyBarrierStrategy", "category": "OptimizationStrategy" }, { "traversal": [ "HugeGraphStep(Vertex,[~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "HugeGraphStepStrategy", "category": "ProviderOptimizationStrategy" }, { "traversal": [ "HugeGraphStep(Vertex,[~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "HugeCountStepStrategy", "category": "ProviderOptimizationStrategy" }, { "traversal": [ "HugeGraphStep(Vertex,[~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "HugeVertexStepStrategy", "category": "ProviderOptimizationStrategy" }, { "traversal": [ "HugeGraphStep(Vertex,[~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "ProfileStrategy", "category": "FinalizationStrategy" }, { "traversal": [ "HugeGraphStep(Vertex,[~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ], "strategy": "StandardVerificationStrategy", "category": "VerificationStrategy" } ], "final": [ "HugeGraphStep(Vertex,[~label.eq(cmdb_instance_history), cmdb_resources_id.within([123456])])" ] } ] ``` ### Vertex/Edge example (问题点 / 边数据举例) _No response_ ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构) _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
