How to optimize MySQL to insert millions row?

Viewed 8077

I need to insert millions rows into the MySQL database (InnoDB engine). I have a problem with time when the tables have big sizes. Almost all time is spent on insert queries. Maybe somebody know how to optimize it?

2 Answers
Related