Any update statement in this table based on the table key is slow. e.g. clients UPDATE SET CustMoney = 1 WHERE CustUID = 'someid'
CREATE TABLE IF NOT EXISTS `customers` ( `CustFullName` varchar(45) NOT NULL, `CustPassword` varchar(45) NOT NULL, `CustEmail` varchar(128) NOT NULL, `SocialNetworkId` tinyint(4) NOT NULL, `CustUID` varchar(64) character set ascii NOT NULL, `CustMoney` bigint(20) NOT NULL default '0', `LastIpAddress` varchar(45) character set ascii NOT NULL, `LastLoginTime` datetime NOT NULL default '1900-10-10 10:10:10', `SmallPicURL` varchar(120) character set ascii default '', `LargePicURL` varchar(120) character set ascii default '', `LuckyChips` int(10) unsigned NOT NULL default '0', `AccountCreationTime` datetime NOT NULL default '2009-11-11 11:11:11', `AccountStatus` tinyint(4) NOT NULL default '1', `CustLevel` int(11) NOT NULL default '0', `City` varchar(32) NOT NULL default '', `State` varchar(32) NOT NULL default '0', `Country` varchar(32) NOT NULL default '', `Zip` varchar(16) character set ascii NOT NULL, `CustExp` bigint(20) NOT NULL default '0', PRIMARY KEY (`CustUID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Again, I'm not sure if this is causing high CPU utilization, but it seems to me that it is not normal for the update operator to take so long. (0.5 s)
The table is updated to 5 times per second at the moment, and in the future it will be updated more often.
source share