【问题标题】:Orientdb Indexes in Clusters集群中的 Orientdb 索引
【发布时间】:2015-07-18 12:59:01
【问题描述】:

我在 Orientdb 2.0.3 中使用文档类型数据库。

我有一个 A 类,它有一个字段 attr1,我在该 attr1 上创建了 NOTUNIQUE_HASH_INDEX 索引。

最近我将 A 类聚类为几个名为 A_1、A_2、A_3 ... 的集群

之后,当我查询 A 类的记录时,我注意到以下内容:

如果我执行这样的查询,

select from A where attr1 = #10:111 AND ...

它使用 attr1 上的索引并在 1500 左右读取文档(这会很快得出结果)

但是如果我执行这样的查询,

select from cluster:A_1 where attr1 = #10:111 AND ... 

它不使用 attr1 上的索引,并且读取大约 14000 条文档(这是该集群中的记录数)

我想知道的是,我查询记录的方式是否不正确,或者即使我从集群中查询时,我也可以明确地说使用该索引。

问题:如果我指定“从集群中选择:A_1 ...”,Orientdb 会忽略索引吗???

PS:我也重建了索引,结果还是一样。

【问题讨论】:

    标签: sql indexing orientdb


    【解决方案1】:

    Orientdb 仍然不支持此功能。

    希望他们将来会这样做。

    https://github.com/orientechnologies/orientdb/issues/4606

    【讨论】:

      猜你喜欢
      • 2015-03-14
      • 1970-01-01
      • 1970-01-01
      • 2011-09-12
      • 1970-01-01
      • 2014-08-19
      • 2013-05-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多