Neo4j: Don't create embedded queries for entities

Description

In Neo4jEntityQueries, createEmbeddedNodeQuery is created also if the given EKM represents an entity rather than an embeddable. That seems superfluous, avoiding it will save some bytes.

Environment

None

Activity

Show:
Emmanuel Bernard
February 19, 2015, 8:24 PM

Hum, hard to guess what that is about without context.

Gunnar Morling
February 20, 2015, 9:46 AM

We prepare different types of (Cypher) queries, but not all of them are required, depending on the type of object (entity vs. embeddedable). This is about preparing only those queries we actually need.

Davide D'Alto
February 20, 2015, 9:56 AM
Edited

The problem at the moment is that at startup we don't know if the EntiyKeyMetadata represents an entity or an embeddable

Assignee

Unassigned

Reporter

Gunnar Morling

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Priority

Major
Configure