in reply to Re: DBD::MySQL timeout during query
in thread DBD::MySQL timeout during query
Peptide contains almost 2 millions rows (not that big a deal)SELECT COUNT(DISTINCT seq) FROM Peptide;
The index on seq is index iseq (seq(20)) The average length of seq is 16 and the max is 113. The number with length over 50 is 2400 or so. I set the net_read/write_timeout to 60 and restarted server, but no difference. Also I am using .ini with the settings from my-huge.cnf.EXPLAIN AND DESCRIBE: mysql> explain select count(distinct seq) from Peptide; +---------+------+---------------+------+---------+------+---------+-- +-----+ | table | type | possible_keys | key | key_len | ref | rows | E +xtra | +---------+------+---------------+------+---------+------+---------+-- +-----+ | Peptide | ALL | NULL | NULL | NULL | NULL | 1860342 | + | +---------+------+---------------+------+---------+------+---------+-- +-----+ 1 row in set (0.02 sec) mysql> desc Peptide; +--------+---------------------------+------+-----+------------+------ +----------+ | Field | Type | Null | Key | Default | Extra + | +--------+---------------------------+------+-----+------------+------ +----------+ | pepid | int(10) unsigned zerofill | | PRI | NULL | auto_ +increment | | proid | int(10) unsigned zerofill | | MUL | 0000000000 | + | | seq | tinytext | | MUL | | + | | mh | double | | | 0 | + | | expect | double | | | 0 | + | | start | int(11) | | | 0 | + | | end | int(11) | | | 0 | + | | charge | tinyint(1) unsigned | YES | | NULL | + | | delta | float | | | 0 | + | | dida | int(11) | | | 0 | + | | didb | int(11) | | | 0 | + | | didc | int(11) | | | 0 | + | +--------+---------------------------+------+-----+------------+------ +----------+ 12 rows in set (0.00 sec)
C:\testing\scripts>perl stat_tester.pl Connected DBD::mysql::db do failed: Lost connection to MySQL server during query + at stat_tester.pl line 54.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBD::MySQL timeout during query
by tantarbobus (Hermit) on Sep 09, 2004 at 21:01 UTC | |
|
Re^3: DBD::MySQL timeout during query
by tachyon (Chancellor) on Sep 10, 2004 at 00:18 UTC | |
by rcraig (Initiate) on Sep 10, 2004 at 15:57 UTC |