【发布时间】:2015-10-01 08:08:54
【问题描述】:
我有这个 Titan 数据库架构:
val mgmt = getManagementSystem
val guid = mgmt.makePropertyKey("guid").dataType(classOf[String]).make()
mgmt.buildIndex("byGuid",classOf[Vertex]).addKey(guid).unique().buildCompositeIndex()
mgmt.commit()
mgmt.makePropertyKey("foo").dataType(classOf[String]).make()
mgmt.makePropertyKey("fo2").dataType(classOf[String]).make()
mgmt.makePropertyKey("about").dataType(classOf[String]).make()
/**
foo foo foo
*//
mgmt.commit()
当我尝试这样做时:
db.V.has("guid", guid).next()
然后在 Debug 中是这条消息:
[warn] c.t.t.g.t.StandardTitanTx - Query requires iterating over all vertices [()]. For better performance, use indexes
我使用了 Titan 文档,所有设置都像文档中一样。我不知道出了什么问题,请帮忙。谢谢。
【问题讨论】:
标签: scala indexing playframework titan