0

I am using neo4j's rest api for batch importing.

As per the docs ( http://docs.neo4j.org/chunked/stable/rest-api-batch-ops.html )

This service is transactional. If any of the operations performed fails (returns a non-2xx HTTP status code), the transaction will be rolled back and all changes will be undone.

I am imporitng 60K nodes and 200K relationships. (At least) One of the relationships fails and as expected the whole operation fails.

My question is, is there way to track which specific line of the import is failing so that I can isolate or remove it?


Update: As per @Thomas Fenzi's answer below, I turned on the X-Stream flag, however it is moving at a snails pace. (about 1/5 th the speed). Does anyone have any other suggestions?

4

1 回答 1

1

如果您在流模式下使用 API(文档中的第 18.15.3 章,发送X-Stream = true标头并执行您需要客户端处理分块响应的任何操作),您会得到响应直至错误点。

60k 节点和 200k 关系对于单个事务来说可能有点高,具体取决于您的硬件。

于 2013-05-08T18:23:34.523 回答