Blazegraph Tinkerpop 3 索引
Blazegraph Tinkerpop 3 Indexing
我正在尝试了解 Blazegraph。目前我对如何优化简单查找感到困惑。
假设我所有的顶点都有一个 属性 id
,这是唯一的。这个属性是用户设置的。有什么方法可以加快查找特定 id
的顶点,同时仍然坚持使用 Tinkerpop APIs?
搜索API定义here是唯一的方法吗?
我以前的经验是在 TitanDB 中,在 Titan 的情况下,可以定义 Tinkerpop API 完美集成的索引。有什么方法可以在不使用搜索的情况下在 Blazegraph 中获得相同的结果 API?
Whether a mid-traversal V() uses an index or not, depends on a)
whether suitable index exists and b) if the particular graph system
provider implemented this functionality.
Gremlin (Tinkerpop) 未指定 how to set indexes although the documentation presents things like the following
graph.createIndex("username",Vertex.class)
但是可能会保留给ThinkerGraph implementation,其实上面写着
Each graph system will have different mechanism by which indices and
schemas are defined. TinkerPop3 does not require any conformance in
this area. In TinkerGraph, the only definitions are around indices.
With other graph systems, property value types, indices, edge labels,
etc. may be required to be defined a priori to adding data to the
graph.
有个例子for Neo4J
TinkerPop3 does not provide method interfaces for defining
schemas/indices for the underlying graph system. Thus, in order to
create indices, it is important to call the Neo4j API directly.
但是代码对于那个插件来说是非常具体的
graph.cypher("CREATE INDEX ON :person(name)")
请注意,对于 BlazeGraph the search uses a built in full-text index
我正在尝试了解 Blazegraph。目前我对如何优化简单查找感到困惑。
假设我所有的顶点都有一个 属性 id
,这是唯一的。这个属性是用户设置的。有什么方法可以加快查找特定 id
的顶点,同时仍然坚持使用 Tinkerpop APIs?
搜索API定义here是唯一的方法吗?
我以前的经验是在 TitanDB 中,在 Titan 的情况下,可以定义 Tinkerpop API 完美集成的索引。有什么方法可以在不使用搜索的情况下在 Blazegraph 中获得相同的结果 API?
Whether a mid-traversal V() uses an index or not, depends on a) whether suitable index exists and b) if the particular graph system provider implemented this functionality.
Gremlin (Tinkerpop) 未指定 how to set indexes although the documentation presents things like the following
graph.createIndex("username",Vertex.class)
但是可能会保留给ThinkerGraph implementation,其实上面写着
Each graph system will have different mechanism by which indices and schemas are defined. TinkerPop3 does not require any conformance in this area. In TinkerGraph, the only definitions are around indices. With other graph systems, property value types, indices, edge labels, etc. may be required to be defined a priori to adding data to the graph.
有个例子for Neo4J
TinkerPop3 does not provide method interfaces for defining schemas/indices for the underlying graph system. Thus, in order to create indices, it is important to call the Neo4j API directly.
但是代码对于那个插件来说是非常具体的
graph.cypher("CREATE INDEX ON :person(name)")
请注意,对于 BlazeGraph the search uses a built in full-text index