如何在orientdb(本机java api)中创建索引

如何在orientdb(本机java api)中创建索引,orientdb,Orientdb,当图形开始增长时,我收到以下警告: 'bertex = false' fetched more than 50000 records: to speed up the execution, create an index or change the query to use an existent index 有没有办法从JavaAPI创建索引 我似乎找不到合适的javadocs 非常感谢 试试这个: graph.createKeyIndex("name", Vertex.class, new

当图形开始增长时,我收到以下警告:

'bertex = false' fetched more than 50000 records: to speed up the execution, create an index or change the query to use an existent index
有没有办法从JavaAPI创建索引

我似乎找不到合适的javadocs

非常感谢

试试这个:

graph.createKeyIndex("name", Vertex.class, new Parameter("type", "UNIQUE"));
有关更多信息,请查看此链接:

希望能有帮助

关于

试试这个:

graph.createKeyIndex("name", Vertex.class, new Parameter("type", "UNIQUE"));
有关更多信息,请查看此链接:

希望能有帮助


您好,您能发布查询吗?在advancegraph.getVertices(s1,true.iterator()中使用Thx;Thx,还有一件事。。。s1包含什么?嗨,你能发布查询吗?在advancegraph.getVertices(s1,true.iterator()中使用Thx;Thx,还有一件事。。。s1包含什么?谢谢!我一定是把这一部分翻得太快了。对不起,浪费了你的时间!别担心,这是一个愉快的假期!我一定是把这一部分翻得太快了。对不起,浪费了你的时间!别担心,这是我的荣幸