Do you have disk performance data? My guess would be it's the time to read the information off the disk.

I think redhat has the iostat command. Try running

iostat 1

in one window while you run your query in another, what result do you get from the iostat?

--
Michael Conlen

Bob Ostermann wrote:

Hi-

I'm running mysql Ver 12.20 Distrib 4.0.13, for pc-linux (i686) / RedHat 7.3 on a AMD 2400XP 256 MB.


I've got a table (type=MyISAM) that's grown to 1,7 GB (154,815 records) and it takes several seconds to perform even simple querys:


select data from eod where symbol='ZOOM'

yields: 1 row in set (3.15 sec)

(data is about 29K)

a repeat of the query yields 0.00 seconds, so the slowdown appears to be in the initial accessing of the data, not the handling/display of the result.

nearby records (key 'ZOWI') execute faster (1 row in set (0.28 sec)) but still slowly.

this is the create:

CREATE TABLE `eod` (
  `symbol` varchar(10) binary NOT NULL default '',
  `updated` date default NULL,
  `data` mediumtext,
  PRIMARY KEY  (`symbol`)
) TYPE=MyISAM


Is there a relationship between filesystem/recordsize/recordcount that needs to be optimized for this type of table?


bob.




============================================== The RediNews Network http://www.redinews.com/ Custom Financial Web Site Content phone: (516) 997-4343 ==============================================





-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to