There are several reasons why updating via join in MySQL can result in slow performance:
Large tables: if the tables being joined are very large, it can take a long time to update the joined result set.
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.
Complex conditions: if the join condition has complex expressions or functions, it can take longer to process the query.
Locking: updating via join can sometimes lock the table and prevent other queries from accessing it, which can slow down performance.
Server load: if the server is already under heavy load, updating via join can further slow down performance.
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
Asked: 2022-09-02 11:00:00 +0000
Seen: 10 times
Last updated: Jun 24 '22
How can multiple queries be merged into a single stored procedure in MySQL?
What does "waiting for handler commit" mean in relation to the slow writes experienced in MySQL 8?
How can Spring Boot and Mysql be utilized for CRUD operations?
How can I use sqlalchemy to merge JSON within a column of mysql?
Retrieve all rows in which two IDs appear for the first time.
What are the benefits of choosing sqlalchemy.types instead of sqlalchemy.dialects.mssql?