【问题标题】:Is it possible to index labels in Titan?是否可以在 Titan 中索引标签?
【发布时间】:2016-03-29 21:08:16
【问题描述】:

当我运行这样的查询时:

g.V().hasLabel("myDefinedLabel").values("myKey").next()

打印出来

20:46:30 WARN  com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx  - 
Query requires iterating over all vertices [(~label = myDefinedLabel)].
For better performance, use indexes

所以,我想要解决这个问题,我需要索引标签。有没有办法做到这一点?

我尝试执行正常过程来创建描述here in Titan docs 的索引,但标签不是索引的常规属性键。

假设我要为标签创建复合索引,该怎么做?

【问题讨论】:

  • 我想知道将标签添加为可以索引的属性是否有意义?

标签: titan


【解决方案1】:

Titan doesn't allow you to index labelsaccording to the devs 这不是他们想要启用的东西。

【讨论】:

    猜你喜欢
    • 2014-02-18
    • 1970-01-01
    • 1970-01-01
    • 2012-07-20
    • 2012-04-07
    • 1970-01-01
    • 1970-01-01
    • 2011-02-11
    • 1970-01-01
    相关资源
    最近更新 更多