【发布时间】:2016-12-24 02:02:42
【问题描述】:
当我尝试使用 DSE Graph 获取顶点数时
g.V().count()
在生产模式下显示以下错误。
Could not find a suitable index to answer graph query and graph scans are disabled
但在开发模式下也是如此。我是不是做错了什么。
我正在尝试快速启动链接,但创建了自己的架构
https://docs.datastax.com/en/latest-dse/datastax_enterprise/graph/QuickStartStudio.html
架构:
schema.propertyKey("id").Int().single().create() schema.propertyKey("name").Text().single().create()
schema.edgeLabel("created").multiple().create()
schema.vertexLabel("feed").properties("id").create() schema.vertexLabel("user").properties("id", "name").create()
schema.vertexLabel("feed").index("byFeedId").materialized().by("id").add() schema.vertexLabel("user").index("byUser").materialized().by("id").add()
【问题讨论】:
标签: datastax datastax-enterprise