Orientdb 如何加速对链接文档索引的查询

Orientdb 如何加速对链接文档索引的查询,orientdb,Orientdb,我有以下数据库结构: create class User create class Social create property Social.vk string create property User.social LINK Social create index User.social unique create index Social.vk notunique 查询从social.vk='123'使用索引的用户中选择 在studio中解释为我提供了以下信息: involvedI

我有以下数据库结构:

create class User
create class Social

create property Social.vk string
create property User.social LINK Social

create index User.social unique
create index Social.vk notunique
查询
从social.vk='123'使用索引的用户中选择

在studio中解释为我提供了以下信息:

 involvedIndexes
 ["User.social","Social.vk"]

 elapsed
 2771.4197
它明显慢于

从社交网站中选择,其中vk='123'
运行速度为10-30毫秒

如何加快慢速查询,或者使用双向链接重新设计数据

upd
和没有索引的查询时间相比,似乎索引没有使用,但根据它使用的“解释”

upd2

当“vk”字段不是唯一的并且有许多重复值时,就会出现问题,这是osql的一个问题。简单的解决方法-直接查询索引。因此,性能没有问题

用边缘代替链接怎么样?@IvanMainetti感谢您的回复。当我将
=
更改为
LIKE
时,查询将以毫秒运行
从用户where social.vk中选择LIKE'123'
,因此我将继续调查并稍后发布结果…@IvanMainetti about'LIKE'-这似乎是一个bug,因为它不起作用。关于链接-我不确定,这对我来说是否简单-将文档数据库迁移到图形。是的,对我来说这听起来也像一个bug。您可以在官方github上打开一个问题。您好@zella我正在用300000名用户尝试您的案例,我得到了一个非常好的结果:
select from User where social.vk='123'
passed:0.315418。您使用的是哪个版本?我在2.2.12