search

Home  >  Q&A  >  body text

mysql - How to ensure data consistency under large batch update operations?

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?

習慣沉默習慣沉默2769 days ago821

reply all(1)I'll reply

  • 欧阳克

    欧阳克2017-06-22 11:56:46

    For transactions, use try catch, if an error occurs, rollback, if not, commit

    reply
    0
  • Cancelreply