readOnly: Setting up a read/write transaction by specifying @Transactional(readOnly=false) will make the FlushMode of the persistence context AUTO.
readOnly:通过指定 @Transactional(readOnly=false) 建立读/写事务,这样会使持久化上下文的 FlushMode 变为 AUTO。
This has interesting implications for the question of whether to use no transactions or read-only transactions in flow-managed persistence.
这对于在流管理的持久化中是不使用事务还是使用只读事务的问题产生了有趣的影响。
If the are repository use is mainly read-only operations, then increase the persistence interval to provide better performance.
如果存储库使用主要是只读性的操作,那么您可以增加持续性间隔以提供更好的性能。
应用推荐