I'm using Spring-data-neo4j 4.0.0 with Neo4j 2.3.1 and I'm wondering why when I do something like:
entityRepository.save(Iterable multipleObjects);
it actually does multiple REST calls on Neo4j server:
- POST to create the transaction (done once, ok)
- POST http://host:7474/db/data/transaction/id {"statements":[{"statement":"CREATE..."}]} (done once per object to save !)
- POST to commit the transaction (done once, ok)
When it could group all entities creation into one REST POST call (with multiple statements).
I have performances issues with this use case, and I'm wondering if I don't use SDN correctly.
Or maybe this is a known problem that is planned to be improved in a near future ?