Significance and configuration of transaction attributes

When using the jpatemplate provided by spring to query, if the amount of data exceeds 100, the query efficiency will be significantly reduced. Since the two-way association within JPA is used at the beginning, there are too many internal associations among entities, affecting all operations. Therefore, it is suspected that it is due to the association relationship of JPA. However, the effect after removing the correlation is not significant.

Configuration issues.

Using the above configuration, the log printed by JPA shows that each query needs to be updated. After consulting the relevant spring data, it is found that the meanings of various attributes of transactionattributes are as follows:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>