Ask Your Question
4

What causes the slow performance of updating via join in MySQL?

asked 2022-09-02 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-06-24 20:00:00 +0000

lakamha gravatar image

There are several reasons why updating via join in MySQL can result in slow performance:

  1. Large tables: if the tables being joined are very large, it can take a long time to update the joined result set.

  2. Lack of indexes: if the tables being joined do not have appropriate indexes on the fields used for joining, the query may need to read all data to perform the join.

  3. Complex conditions: if the join condition has complex expressions or functions, it can take longer to process the query.

  4. Locking: updating via join can sometimes lock the table and prevent other queries from accessing it, which can slow down performance.

  5. Server load: if the server is already under heavy load, updating via join can further slow down performance.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-09-02 11:00:00 +0000

Seen: 10 times

Last updated: Jun 24 '22