Comment by avianlyric
Comment by avianlyric 19 hours ago
By pushing up the transaction boundary. The only reason why the conditional is important is because it part of a larger sequence of operations that you want to complete in an atomic fashion.
Your transaction needs to encompass all of those operations, not just parts of it.