mysql - How to ensure data consistency under large batch update operations?
習慣沉默2017-06-22 11:54:46
0
1
786
During the execution of large batch update operations, the application layer is not aware of it. It will only know when the update is completed. The current method that comes to mind is the a/b library mechanism. Are there any other methods?
For transactions, use try catch, if an error occurs, rollback, if not, commit