1

我对在 OrientDB 的查询中使用索引有疑问。

例如,我的 X 类只有一个属性 x。X 类有很多记录,例如 200 000。

查询:select * from X where x=y 执行很长时间。

我在 x 属性上创建了索引。

查询:select * from X where x=y 执行很长时间。

查询:select expand(z) from index X.x where x=y 执行快

哪个查询是正确的(使用索引时):

(1)select * from X where x=y

(2)select expand(z) from index X.x where x=y

4

0 回答 0