代码之家  ›  专栏  ›  技术社区  ›  user1883163

从gremlin python直接进行gremlin查询

  •  0
  • user1883163  · 技术社区  · 7 年前

    • 我不能直接选择给定的顶点类型(g.V('customer')),而不迭代所有顶点(g.V().hasLabel('customer'))
    • 我从Python中得到了“达到最大递归”错误。在gremlin中,同样的查询工作平稳且快速

    1 回复  |  直到 6 年前
        1
  •  3
  •   stephen mallette    7 年前

    我不能直接选择给定的顶点类型(g.V('customer')),而不迭代所有顶点(g.V().hasLabel('customer'))

    g.V('customer') 在Gremlin中,意思是“用id‘customer’查找顶点”,而不是“用标签‘customer’查找顶点”。对于后者,你需要你写的东西 g.V().hasLabel('customer')

    我从Python中得到了“达到最大递归”错误。在gremlin中,同样的查询工作平稳且快速

    那是一个 bug fix was fairly trivial .

    “.next()”命令在gremlin python中运行非常慢,而在gremlin中则需要1秒

    我不确定你到底看到了什么。我认为您可能需要更详细地了解您的环境,并详细说明如何再现这种差异。也许你应该把这个问题带到gremlin用户的邮件列表上。

    推荐文章