简体   繁体   中英

Spring-data-neo4j 4.0.0 repository makes multiple REST calls instead of grouping them

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 ?

您正在正确使用它-这是一个已知问题,将在以后的版本中修复。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM