Answer the question
In order to leave comments, you need to log in
How to increase insert speed in InnoDB table?
Is it possible to increase insert speed in innodb? Myisam table fills up almost instantly with 2 million records, but innodb takes a terribly long time. In contrast, update in myisam is very slow, and in innodb (according to information) much faster. I need to choose one type and set up the database so that both the insertion and the update happen quickly. Can you somehow tweak the settings? Thank you!
Answer the question
In order to leave comments, you need to log in
BEGIN TRANSACTION
-- Insert rows in batches of 10-100K
COMMIT
Use INSERT with multiple VALUES:
INSERT INTO table (col1, col2)
VALUES
(1,2),
(3,4),
....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question