MySQL Forums
Forum List  »  MyISAM

Re: Slow UPDATE's on a large table
Posted by: Rick James
Date: June 28, 2010 08:38PM

Ordinary disk systems run at about 100 operations per second. You are asking to do 1000. Caching is temporarily saving you. But, as your 3GB of data expands beyond your 4GB machine (of which you have maybe 2.5GB available for caching of the data), the problem will get worse and worse.

What to do?

* Faster disks

* RAID striping

* SSDs

* Shrink the data (such as INT vs TINYINT) to shrink the 3GB.

* Rethink the design of the program

* Split the table (vertically) so that the table you are so frequently updating is smaller. Would it work to have another table, containing only baseMessageId and statusId? (Maybe some more fields.) Such a table would be under 0.3GB, and easily cacheable in your 4GB machine.

* More RAM -- but you would need 64-bit OS and 64-bit MySQL.

Options: ReplyQuote


Subject
Views
Written By
Posted
14901
June 24, 2010 10:11PM
6342
June 27, 2010 02:57PM
5511
June 27, 2010 09:16PM
5683
June 27, 2010 09:47PM
4308
June 27, 2010 10:36PM
4227
June 27, 2010 11:52PM
Re: Slow UPDATE's on a large table
3974
June 28, 2010 08:38PM
4130
July 04, 2010 08:28PM


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.