Regarding MySQL and InnoDB tables, is it considered good practice to globally keep the autocommit
mode disabled, so that all SQL statements throughout your code have to be explicitly committed? Does this introduce any overhead or other adverse conditions?
My experience is better to enable it by default if your framework supports it. If you forget to commit, the uncommitted transaction may lock a lot of resources.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With