MySQL Forums
Forum List  »  Performance

UPDATE 6m records quickly
Posted by: Peter Crosbie
Date: January 23, 2005 03:47PM

I have several large tables, 5-6m records that I need to update from time with new calculated values. The SQL UPDATE does a select and then a write. This is very slow for 5m records even when the WHERE clause is a simple KEY and indexed.

Any suggestions on how I could do these large volume updates more efficiently?

Is there a way to sequentially write to tables or similar to avoid the SELECT?

Options: ReplyQuote


Subject
Views
Written By
Posted
UPDATE 6m records quickly
3259
January 23, 2005 03:47PM
1938
January 24, 2005 01:04AM
2106
January 24, 2005 03:51PM
1941
January 24, 2005 03:53PM
2039
January 24, 2005 09:43PM
1928
January 25, 2005 12:47AM
1860
January 25, 2005 02:41PM
1891
January 25, 2005 11:32PM
1967
January 26, 2005 03:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.