Neo4J 事务中的最大查询数

问题描述 投票:0回答:1

我们似乎间歇性地遇到以下异常:

org.springframework.dao.InvalidDataAccessResourceUsageException: Cannot run more queries in this transaction, it has either experienced an fatal error or was explicitly terminated; Error code 'N/A'; nested exception is org.neo4j.driver.exceptions.ClientException: Cannot run more queries in this transaction, it has either experienced an fatal error or was explicitly terminated

我们过去通过简单地批量处理来解决这个问题,但现在它又发生了。作为临时解决方案,我们将进一步减少批量大小,但我们希望添加一些更具动态性和永久性的内容。

是否有关于交易中允许的查询数量的任何文档?我从 Neo4J 本身可以找到的是,您可以同时运行 1,000 个事务,但没有关于每个事务在终止之前可以进行多少个查询的数据。这些信息到处都有吗?有没有人自己做过测试来确定这个数字?

neo4j spring-data
1个回答
0
投票

正如错误消息所述,事务“要么遇到致命错误,要么被明确终止”。我假设您没有故意终止交易,因此还有一些其他异常最终导致了

InvalidDataAccessResourceUsageException

InvalidDataAccessResourceUsageException
的完整堆栈跟踪应该显示其他异常是什么。您必须修复(或解决)其他异常。

© www.soinside.com 2019 - 2024. All rights reserved.