当图形开始增长时,我收到以下警告:
'bertex = false' fetched more than 50000 records: to speed up the execution, create an index or change the query to use an existent index
有没有办法从java api创建索引?
我似乎找不到合适的javadoc。
非常感谢!
发布于 2016-07-27 05:48:32
试试这个:
graph.createKeyIndex("name", Vertex.class, new Parameter("type", "UNIQUE"));
欲了解更多信息,请访问以下链接:http://orientdb.com/docs/2.1/Graph-Database-Tinkerpop.html#using-indices
希望能有所帮助。
问候
https://stackoverflow.com/questions/38599564
复制相似问题