Closed JackyYangPassion closed 2 years ago
@JackyYangPassion 分别解答如下:
- gremlin 预编译 消耗将近900ms 以上 这个符合预期吗 以及在metrics 中能否监控预编译占用的时间?
Gremlin 预编译一般在百毫秒级别,主要是把执行语句编译为Java字节码class,900ms可能比较稍微高一些,我这边postman测试预编译耗时一般在200ms~300ms左右。 Metrics增加预编译占用,实现应该是没问题,不过可能需要修改TinkerPop框架代码,如果有兴趣可以尝试贡献到TInkerPop社区,我也可以帮忙Review代码。
- profile 展示的消耗时间 是不是不包含 gremlin 预编译时间 只是每一步真正查询计算的耗时
对的,profile() 不包括预编译时间,确切的说,如果有多条语句的话,也不包括其它语句的执行时间。
- edge_type这个变量如何写多个值?
可以使用列表参数[]
,参考如下示例:
{
"gremlin": "hugegraph.traversal().V(a_id).outE(edge_type as String[])",
"bindings": {"a_id": 1, "edge_type": ["edge-label1", "edge-label2"]},
"language": "gremlin-groovy",
"aliases": {}
}
其中
edge_type as String[]
与edge_type.toArray(new String[0])
等价。
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label
Problem Type (问题类型)
performence (性能优化)
Before submit
Environment (环境信息)
Your Question (问题描述)
并发查询性能较差
Vertex/Edge example (问题点 / 边数据举例)
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response