Digital Marketing

#Database Transaction Best Practices

  1. Keep transactions to the smallest number of commands needed. If you have transactions with multiple statements that can be divided up into multiple smaller transactions, it is advisable to do so to reduce the likelihood of a timeout. Always aim to create short transactions, not long-running reads.
  2. Always commit or abort the transaction after it is complete. Leaving a transaction in an incomplete state ties up database resources and can cause write conflicts.


Comments

Popular posts from this blog

How to delete / clear queue of PowerMTA