matt

> 
> the issue is insert speed, I get 150k-1M records daily, of 
> these, only 
> 5-10 % are new records, I load the EBCDIC file into a temp table, and 
> then do "insert ignore into historytable select * from temp table"
> 
Since you have a temp table created (no keys I assume), use the command

  mysqldump -v -e -n -t dbname tablename > filename.sql

This should create insert statements with many values in a single
insert. Then use the client program to insert them to you db.

  mysql -u matt -p dbname < filename.sql

This is very fast way to insert rows. Speeds up insertion by at
least 10x on my large tables (11 million rows). I noticed someone
with 1000x more rows w/o problems.

BTW, by forcing the table to have packed keys, the docs say it
will slow your insertion. Maybe not that much, i don't know.

David

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to