On Thu, Mar 16, 2000 at 07:17:42PM +0100, Szymon Grabowski wrote:
I tried to move the database this way:
#1
mysqldump --quick getresponse prospects | gzip >prospects.gz
(on the OLD server)
#2
gunzip < prospects.gz | mysql getresponse
(on the NEW server)
while #1 was very fast (about 15 minutes), #2 took several hours.
It was strange, because #2 accomplished the first 50% pretty fast
and then it DRAMATICALLY slowed down. Is there any reason
for that? Can I fix it?
Can you drop all indexes from the table, then perform the insert?
Then add the indexes back. It might perform much better. There
are several hints on how to speed up inserts in the manual (look
at the `Insert speed' section).
Tim