SQL optimization - update optimization

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.
insert image description here

2. Summary

In fact, sql optimization is to optimize the index
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44860226/article/details/131869884