简体   繁体   English

Spring-data-neo4j 4.0.0存储库发出多个REST调用而不是将它们分组

[英]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: 我正在将Spring-data-neo4j 4.0.0与Neo4j 2.3.1一起使用,我想知道为什么当我做类似的事情时:

entityRepository.save(Iterable multipleObjects); entityRepository.save(Iterable multipleObjects);

it actually does multiple REST calls on Neo4j server: 它实际上在Neo4j服务器上执行多个REST调用:
- 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 http:// host:7474 / db / data / transaction / id {“ statements”:[{“ statement”:“ CREATE ...”}]}( 每个对象保存一次!
- POST to commit the transaction (done once, ok) -POST提交事务(完成一次,确定)

When it could group all entities creation into one REST POST call (with multiple statements). 当它可以将所有实体创建分组到一个REST POST调用(带有多个语句)中时。

I have performances issues with this use case, and I'm wondering if I don't use SDN correctly. 我在此用例中遇到性能问题,我想知道我是否未正确使用SDN。

Or maybe this is a known problem that is planned to be improved in a near future ? 还是这是一个已知问题,计划在不久的将来加以解决?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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