此内容没有您所选择的语言版本。
30.4.6. Advanced Configurations and Optimizations
The default locking behavior of entity beans can cause deadlock. Since access to an entity bean locks the bean into the transaction, this also can present a huge performance/throughput problem for your application. This section walks through various techniques and configurations that you can use to optimize performance and reduce the possibility of deadlock.
30.4.6.1. Short-lived Transactions 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Make your transactions as short-lived and fine-grained as possible. The shorter the transaction you have, the less likelihood you will have concurrent access collisions and your application throughput will go up.