DSE Graph - 如何从 Gremlin 查询中查看底层 Cassandra 查询?
DSE Graph - How to see the underlying Cassandra queries from Gremlin queries?
如果我在 gremlin-console
中执行 gremlin 查询,有没有办法查看 DSE Graph 生成的 Cassandra 查询?
DSE Graph 为 TinkerPop profile() step 的结果提供了一组扩展属性 - 这是输出示例:
gremlin> g.V().has('recipe','name','spaghetti').profile()
==>Traversal Metrics
Step Count Traversers Time (ms) % Dur
=============================================================================================================
DsegGraphStep([~label.=(recipe), name.=(spaghet... 1 1 97.087 81.00
query-optimizer 22.802
\_condition=(((label = recipe) & (true)) & name = spaghetti)
query-setup 1.134
\_isFitted=true
\_isSorted=false
\_isScan=false
index-query 19.838
\_indexType=Secondary
\_usesCache=false
\_statement=SELECT "community_id", "member_id" FROM "junk"."recipe_p" WHERE "name" = ? LIMIT ?; with para
ms (java.lang.String) spaghetti, (java.lang.Integer) 50000
\_options=Options{consistency=Optional[ONE], serialConsistency=Optional.empty, fallbackConsistency=Option
al.empty, pagingState=null, pageSize=-1, user=Optional.empty, waitForSchemaAgreement=true, asyn
c=true}
DsegPropertyLoadStep 1 1 22.772 19.00
>TOTAL - - 119.860 -
斯蒂芬是正确的。此功能是在 5.1.2 中添加的。您将在 5.1.2 的发行说明中看到 JIRA (DSP-13293)。您使用的是什么版本?
如果我在 gremlin-console
中执行 gremlin 查询,有没有办法查看 DSE Graph 生成的 Cassandra 查询?
DSE Graph 为 TinkerPop profile() step 的结果提供了一组扩展属性 - 这是输出示例:
gremlin> g.V().has('recipe','name','spaghetti').profile()
==>Traversal Metrics
Step Count Traversers Time (ms) % Dur
=============================================================================================================
DsegGraphStep([~label.=(recipe), name.=(spaghet... 1 1 97.087 81.00
query-optimizer 22.802
\_condition=(((label = recipe) & (true)) & name = spaghetti)
query-setup 1.134
\_isFitted=true
\_isSorted=false
\_isScan=false
index-query 19.838
\_indexType=Secondary
\_usesCache=false
\_statement=SELECT "community_id", "member_id" FROM "junk"."recipe_p" WHERE "name" = ? LIMIT ?; with para
ms (java.lang.String) spaghetti, (java.lang.Integer) 50000
\_options=Options{consistency=Optional[ONE], serialConsistency=Optional.empty, fallbackConsistency=Option
al.empty, pagingState=null, pageSize=-1, user=Optional.empty, waitForSchemaAgreement=true, asyn
c=true}
DsegPropertyLoadStep 1 1 22.772 19.00
>TOTAL - - 119.860 -
斯蒂芬是正确的。此功能是在 5.1.2 中添加的。您将在 5.1.2 的发行说明中看到 JIRA (DSP-13293)。您使用的是什么版本?