Spring Data Neo4j: why save method takes so long? -


i'm using spring data neo4j in project , i've noticed takes time while saving node entity classes (>300ms/node), pretty simple (they contain 1 property, simple long id). relationships between nodes quite simple (i'm trying represent social network). rest, use cypher queries , timings pretty faster , acceptable (~3-30ms).

this turns out huge problem, since basic part of project populating graph , "trigger" queries. suggestions reason(s) be? spring data neo4j version i'm using 2.1.0.release , i'm using repositories approach.

thank in advance!

it depends on mapping mode use, simple mapping slower has merge object graph neo4j. advanced mapping faster thin layer on top of neo4j (read , write through).

you should create transaction on higher level anyway spans business operation.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -