Skip to content

Neo4j 5 Client Warnings due to Missing Labels along with Slower Load Performance #2660

@jrsperry

Description

@jrsperry

Using Spring Data Neo4j 7.0.0 and neo4j 5, if you have defined a node label or relationship in your schema which does not exist yet in the database you will get significantly slower loading from the db.

Here's a link to a public github project. In the "sdn_7.0.0" branch there are 3 tests which show the differences between loading.

The only difference between a Person and a PersonV2 is that PersonV2 has a relationship to a "Manager" node.

The first test (loadTest) saves 100 Person entities with no other node labels. It takes about 27 seconds to load 100 Person entities.

The second test (loadTestPersonv2MissingManagers) loads 100 PersonV2 entities (no connected managers). This test takes 36 seconds to load 100 PersonV2 entities and throws lots of warnings from the db about missing labels and relationships.

The 3rd test (loadTestWithManagers) loads 100 PersonV2 entities (no connected managers) and 1 PersonV2 with a manager. This test takes about 33 seconds to load 100 PersonV2 entities and does not throw any warnings.

In my real world use case I deal with dbs which may not have all defined entities already existing in the db. Getting slower loading is confusing to me and the amount of logs is overwhelming. In neo4j4 I had no such problem.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions