在Neo4j / Neo4j Spring Data中使用Spring @Transactional(readOnly = true)有什么好处?我应该将只读事务标记为@Transactional(readOnly = true)吗?

最佳答案

从SDN 4.2(在撰写本文时为4.2.RC1)开始,您可以使用只读事务。

从SDN 4.2开始,您还可以定义只读事务。
您可以通过使用@Transactional(readOnly = true)标记类或方法来启动只读事务。

http://docs.spring.io/spring-data/data-neo4j/docs/4.2.x/reference/html/#_read_only_transactions

关于spring - Neo4j的只读事务,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31947967/

10-09 23:00