The difference between obsolete / automatic indexing indexing and the new indexing approach in Neo4j

It's hard for me to understand the difference between an obsolete indexing approach and a new indexing approach, so maybe someone can clarify these points for me. My only problem is how this relates to the Java API, not Cypher requests.

sub-questions

1) Is Legacy Indexing the same as auto indexing?

2) Is it true that if you do not use automatic indexing, then every time you add a node to the chart, you must indicate whether to index it or not?

3) Do I correctly assume that you can enable / disable automatic indexing of all of the Java api without having to link to configuration files?

4) What is meant by this line below, taken from http://docs.neo4j.org/chunked/milestone/indexing.html

This chapter focuses on the use of manual indexes and auto indexes. Starting with Neo4j 2.0, this is not the preferred method of indexing data in Neo4j; instead, we recommend defining indexes in the database schema.

Note:

I am using the Java API

+4
source share
1 answer
  • Yes, auto indexes are a type of obsolete index.
  • Yes.
  • Yes you can embed. See an example here: Neo4j Embedded Full Text Auto Node Index
  • The new "schema indexes" are the preferred way to define label based indexes. Inherited indexes are ... an old way to do this. You can use them together if necessary.
+5
source

Source: https://habr.com/ru/post/1486898/


All Articles