Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Orientdb OSBTreeException:密钥大小超过允许值,操作已取消_Orientdb_Orientdb 2.1 - Fatal编程技术网

Orientdb OSBTreeException:密钥大小超过允许值,操作已取消

Orientdb OSBTreeException:密钥大小超过允许值,操作已取消,orientdb,orientdb-2.1,Orientdb,Orientdb 2.1,我正在使用OrientDB2.1.9,试图将数据批量加载到图形数据库中。数据库包含页面(顶点)和页面之间的链接(边) 我已经为页面顶点定义了顶点类型。因为我想按标题搜索页面,所以我也在title属性上创建了一个索引 graph.createVertexType("Page"); graph.createKeyIndex("title", Vertex.class, new Parameter<String, String>("type", "UNIQUE")

我正在使用OrientDB2.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(运动)”,在10Kb附近没有

有什么建议吗


谢谢

嗨,当然这不是10kb,你能给我发送数据库和模式,这样我就可以重现这个问题吗?嗨,我已经用graph.addVertex(“class:Page”,“title”,“Drie”)尝试了你的代码;它是有效的。变量页面包含哪些内容?@Alessandrororota:是我从维基媒体转储中提取的维基百科文章标题。@AndreyLomakin:您可以在@Jiri上找到JSON导出,我认为您不能插入标题(字符串)超过10240字节的顶点,当然这不接近10kb,你们能给我发一个带有模式的数据库,这样我就可以重现这个问题了吗?嗨,我已经用graph.addVertex(“class:Page”,“title”,“Drie”)试过你们的代码了;它是有效的。变量页面包含哪些内容?@Alessandrororota:是我从维基媒体转储中提取的维基百科文章标题。@AndreyLomakin:您可以在@Jiri上找到JSON导出,我认为您不能插入标题(字符串)超过10240字节的顶点