Re: UPDATE 6m records quickly
Posted by:
James Day
Date: January 24, 2005 01:04AM
You might try to do the updates in chunks which match the physical order of the records (order added for MyISAM unless you've done an ALTER TABLE .. ORDER BY, primary key for InnoDB). Working in chunks by physical order the select will get the data quickly with few sequential reads and the update will update it while it's still cached from the select. Otherwise you'd need to hold all the affected records in cache and that can be a challenge compared to a chunk size you can choose so that it always fits.
Subject
Views
Written By
Posted
3951
January 23, 2005 03:47PM
Re: UPDATE 6m records quickly
2252
January 24, 2005 01:04AM
2454
January 24, 2005 03:51PM
2245
January 24, 2005 03:53PM
2359
January 24, 2005 09:43PM
2291
January 25, 2005 12:47AM
2186
January 25, 2005 02:41PM
2251
January 25, 2005 11:32PM
2333
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.