Neo4j:旧索引和自动索引与新标签基础架构索引 [英] Neo4j: Legacy Indexes and auto index vs new label bases schema indexes

查看:63
本文介绍了Neo4j:旧索引和自动索引与新标签基础架构索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在寻找索引数据的最佳方式,从我的角度来看,有三个选项

I'm currently looking at the best way to index our data and from how I see it there are three options

1).遗留索引.(索引管理器 API)

1). Legacy indexes. (IndexManager API)

2).自动索引(neo4j.properties:node_auto_indexing=true、ode_keys_indexable=name、age、relationship_auto_indexing=true、relationship_keys_indexable=name、age)

2). Auto indexes (neo4j.properties: node_auto_indexing=true, ode_keys_indexable=name,age, relationship_auto_indexing=true, relationship_keys_indexable=name,age)

3).新的基于架构管理器的索引支持,使用标签.

3). New Schema Manager based index support, using labels.

选项 1 和选项 2 的优点是可以在节点和关系上管理索引.但是遗留索引需要在应用程序级别进行管理(这不太好,尤其是如果您习惯了 RDBMS).

Both options 1 and 2 has the benefit that indexes can be managed on both nodes and relationships. But the legacy indexes needs to be managed on application level (which is not so nice, especially if you are used to RDBMS).

选项 3 不提供对关系索引的支持.我知道对关系索引的需求是微不足道的,但仍然非常有用和强大(取决于图形的建模方式).是否有计划在新的架构管理器下添加关系索引?

Option 3 does not provide support for relationship indexes. I understand that the need for relationship indexes is marginal, but still very usable and powerfull (depending on how the graph is modelled). Are there plans to add relationship indexes under the new Schema Manager?

例如,如果我使用架构管理器索引节点并使用自动索引 (neo4j.properties) 索引标签和索引关系,它会起作用吗?

Will it work if for instance I index nodes using Schema Manager and labels and index relationships using the auto indexing (neo4j.properties)?

据我所知,Schema Manager 弃用了旧的 IndexManager(显然是因为它现在称为遗留索引),但因此自动索引(neo4j.properties)现在也属于遗留索引?自动索引和架构管理器的未来计划是什么?

Its my understanding that the Schema Manager deprecates the old IndexManager (obviously cause its now called legacy indexes), but thus the auto indexing (neo4j.properties) now also fall under the legacy indexes? And what are the future plans for auto indexing and the Schema Manager?

谢谢.

推荐答案

例如,如果我使用架构管理器索引节点并使用自动索引 (neo4j.properties) 索引标签和索引关系,它会起作用吗?

Will it work if for instance I index nodes using Schema Manager and labels and index relationships using the auto indexing (neo4j.properties)?

我怀疑我们是否会支持相对索引,我们可能会添加某种形式的以顶点为中心的索引.通常是图形模型的问题迫使您使用相对索引.

I doubt that we'll support rel-indexes, we will probably add some form of vertex centric indexing instead. Usually it is a matter of the graph model that forces you to use rel-indexes.

当我们集成了全文索引和空间索引时,IndexManager 将消失,旧的自动索引也将消失.

IndexManager will go away when we have integrated fulltext and spatial indexes as will the old auto indexing.

模式索引将由密码查询规划器自动使用,并且还将提供统计信息以供将来使用.

Schema indexes will be automatically used by the cypher query planner and will also provide statistics to work with in the future.

这篇关于Neo4j:旧索引和自动索引与新标签基础架构索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆