monkeys paw <monkey (AT) joemoney (DOT) net> wrote:
Quote:
I found that loading an InnoDB table is incredibly slow
....
Does this sound like expected results? |
Sounds like you insert single rows with autocommit enabled.
You should insert some 100 ... 1000 rows per transaction.
mysqldump gets there by using extended INSERT statements.
Alternatively you can use explicit BEGIN; COMMIT;
Or you can set innodb_flush_log_at_trx_commit to 2 for the
import. See:
http://dev.mysql.com/doc/refman/5.1/...t_trx_com mit
Oh and when you're there, don't miss:
http://dev.mysql.com/doc/refman/5.1/...db-tuning.html
XL