Bug #37240 | Is this a bug here? | ||
---|---|---|---|
Submitted: | 6 Jun 2008 9:33 | Modified: | 10 Jun 2008 2:37 |
Reporter: | liu yu | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S5 (Performance) |
Version: | 5.0.38 | OS: | Linux (ubuntu 7.0.4) |
Assigned to: | CPU Architecture: | Any |
[6 Jun 2008 9:33]
liu yu
[6 Jun 2008 19:03]
Valeriy Kravchuk
Thank you for a problem report. Please, send the results of: SHOW TABLE STATUS like tt\G for your tt table.
[9 Jun 2008 6:15]
liu yu
SHOW TABLE STATUS like 'tt' +---------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+------------+-----------------+----------+----------------+---------+ | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment | +---------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+------------+-----------------+----------+----------------+---------+ | tt | MyISAM | 10 | Dynamic | 20 | 389 | 7796 | 281474976710655 | 2048 | 0 | 21 | 2008-05-21 01:36:31 | 2008-05-21 01:36:34 | NULL | utf8_general_ci | NULL | | | +---------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+------------+-----------------+----------+----------------+---------+ 1 row in set (0.00 sec)
[9 Jun 2008 19:13]
Valeriy Kravchuk
This is not a bug. Selecting 10 rows out of 20 total for a table <8K in size using ALL may be even more efficient than reading them by index.
[10 Jun 2008 2:37]
liu yu
Got it.Thanks.