Answer the question
In order to leave comments, you need to log in
How to speed up query execution?
Greetings, tell me who knows.
There is a table myisam on 3000 records (400 KB), periodically there is a need to update records in the table.
Updated in batches of max 100 records every
INSERT INTO `table` (id, field_varchar, field_int) VALUES (...)
ON DUPLICATE KEY UPDATE field_varchar=VALUES(field_varchar), field_int=VALUES(field_int)
Answer the question
In order to leave comments, you need to log in
It slows down because MyISAM makes a table lock for each such request. Use InnoDB.
"Use INSERT DELAYED when you do not need to know when your data is written. This reduces the overall insertion impact because many rows can be written with a single disk write." maybe try that?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question