1

我正在使用 OrientDB 2.1.9,尝试将数据批量加载到图形数据库中。数据库包含页面(顶点)和页面之间的链接(边)。

我已经为页面顶点定义了一个顶点类型。因为我想按标题搜索页面,所以我还在 title 属性上创建了一个索引。

graph.createVertexType("Page");
graph.createKeyIndex("title", Vertex.class, 
            new Parameter<String, String>("type", "UNIQUE"), 
            new Parameter<String, String>("class", "Page")
        );

我使用单个调用为页面添加顶点并设置其标题属性。

graph.addVertex("class:Page", "title", page);

在运行批量导入时,我遇到以下异常:

Caused by: com.orientechnologies.orient.core.index.sbtree.local.OSBTreeException: Key size is more than allowed, operation was canceled. Current key size 20016, allowed  10240
at com.orientechnologies.orient.core.index.sbtree.local.OSBTree.put(OSBTree.java:233)

我不明白为什么会发生异常。关键值是例如“Drie (sport)”,它与 10Kb 相差无几。

有什么建议么?

谢谢!

4

0 回答 0