gremlin - gremlin - show query execution time
问题描述
How do you show the query execution time for a gremlin query while running it a console such as Datastax Studio?
I tried
clockWithResult(100) { myquery }
But I get an error saying "cannot convert from int to Supplier"
解决方案
我很确定这clockWithResult()
是一个仅由 Gremlin Console 提供的功能,而不是 Gremlin 语言本身的一部分。其他 Gremlin 工具(如 DS Studio)没有我所知道的特定功能。如果您真的想使用该功能,您应该将 Gremlin Console 连接到 DataStax Graph 并从那里执行您的查询。
也就是说,clockWithResult()
只是其中的一个成员TimeUtil
,可以在这里找到。您可以:
- 尝试修改 DS Graph 沙盒白名单以允许使用该类,然后通过 Studio 使用它或
- 如果该方法由于某种原因不起作用,只需将该功能代码复制/粘贴到 Studio 单元并直接使用它(我很确定这会起作用,但还没有尝试过)。
推荐阅读
- javascript - 如何使用 react-native 应用程序使用更少的内存
- c - 为什么允许将常规指针分配给指向 const 的指针,但不能相反?
- nodemcu - ESP8266 每次复位闪烁两次
- windows-subsystem-for-linux - Windows docker 卷的 WSL2 挂载 VHDX 虚拟磁盘问题
- android - Firestore 数据库 - Android 中的文档创建日期时间
- python - 如何在 Z3py 中建模
- node.js - 更新嵌套数组 mongodb
- typescript - Deno Validasaur 模块没有导出的成员
- php - 使用 php 控制 ac 程序,因为我的目的是从 web 应用程序运行 c 程序
- c++ - CPLEX:释放模型(资源)需要大量时间