简体   繁体   English

深度4之后OrientDB缓慢遍历

[英]OrientDB slow traversal after depth 4

OrientDB is slow after the traversal is greater than depth 3. (depth 3 took 4 seconds, depth 4 took 11, depth 5 took 37 seconds) 遍历大于深度3之后,OrientDB变慢。(深度3花了4秒,深度4花了11,深度5花了37秒)

My query is: TRAVERSE * FROM (select from products where pid = '73') while $depth<=5 我的查询是:TRAVERSE * FROM(从pid ='73'的产品中选择)而$ depth <= 5

Products extends from V and I have an index type UNIQUE (field pid) with engine SBTree. 产品从V扩展,我具有带有引擎SBTree的索引类型UNIQUE(字段pid)。 When I try with depth 1 until 3 works fine. 当我尝试深度为1时,直到3都可以正常工作。 I compared with Neo4j and took 3 seconds in depth 5 with the same data. 我与Neo4j进行了比较,并用相同的数据花了3秒钟深度5。 I am working with OrientDB 2.1.5 Please help me to improve this. 我正在使用OrientDB 2.1.5,请帮助我改善这一点。 Thanks. 谢谢。

Try using: 尝试使用:

TRAVERSE * FROM (select from products where pid = '73') maxdepth 5

How many records do you have at 4th and 5th level? 您在第4级和第5级有多少条记录?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM