1. update optimization
When executing the update statement, it must be updated according to the index field, otherwise the row lock will be upgraded to a table lock, and the entire table will be locked. Once the table is locked, the concurrency performance will be affected.
2. Summary
In fact, sql optimization is to optimize the index