OrientDB 索引日期

OrientDB Indexing Date

我的 OrientDB 中有很多 BETWEEN 日期操作,我想通过索引提高执行时间的速度。你能推荐一种用于日期查询的索引类型吗?

查询示例:

select from Install where Installtime between '2016-06-15 00:00:00' and '2016-06-16 00:00:00'

您可以尝试使用 SB-Tree NOTUNIQUE 索引:

CREATE INDEX timeindex ON Install (Installtime) NOTUNIQUE

有关详细信息,请参阅 here

希望对您有所帮助。