在OrientDB中加载随机Vertex

时间:2016-01-14 14:38:47

标签: graph orientdb orientdb-2.1

我需要加载随机的Vertex或Edge记录。

有没有办法快速完成这项工作?

查询

select @rid from User skip 300000 limit 1

很慢。

谢谢

1 个答案:

答案 0 :(得分:6)

尝试此命令

SELECT FROM <target> WHERE @rid > <lower-rid> ... [LIMIT <max-records>]

它应该更快。

了解更多信息:http://orientdb.com/docs/2.1/Pagination.html#use-the-rid-limit

相关问题