1. In a transaction, avoid processing too much data at once
2. In a transaction, try to avoid unnecessary queries
3. In a transaction, avoid time-consuming operations that cause transaction timeouts
1. In a transaction, avoid processing too much data at once
2. In a transaction, try to avoid unnecessary queries
3. In a transaction, avoid time-consuming operations that cause transaction timeouts