MySQL Forums
Forum List  »  Optimizer & Parser

Re: Question on bad execution plan
Posted by: Zw Zhu
Date: June 28, 2010 02:39AM

The result is as follows:

mysql> SHOW TABLE STATUS LIKE 'letter'\G
*************************** 1. row ***************************
Name: letter
Engine: InnoDB
Version: 10
Row_format: Compact
Rows: 56
Avg_row_length: 292
Data_length: 16384
Max_data_length: 0
Index_length: 16384
Data_free: 0
Auto_increment: NULL
Create_time: 2010-06-17 09:45:19
Update_time: NULL
Check_time: NULL
Collation: gbk_chinese_ci
Checksum: NULL
Create_options:
Comment:
1 row in set (0.00 sec)

mysql> SHOW CREATE TABLE letter \G
*************************** 1. row ***************************
Table: letter
Create Table: CREATE TABLE `letter` (
`id` int(11) NOT NULL,
`date` date DEFAULT NULL,
`title` varchar(8) DEFAULT NULL,
`sender_name` varchar(8) DEFAULT NULL,
`sender_id` int(11) DEFAULT NULL,
`is_read` int(11) DEFAULT NULL,
`receiver_id` int(11) DEFAULT NULL,
`receiver_del` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `letter_receiver_id_receiver_del_is_read_id_desc` (`receiver_id`,`receiver_del`,`is_read`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk
1 row in set (0.00 sec)

Options: ReplyQuote


Subject
Views
Written By
Posted
4432
June 16, 2010 07:36AM
1826
June 17, 2010 09:29AM
1558
June 21, 2010 09:24AM
1718
June 21, 2010 06:47PM
1774
June 22, 2010 07:33AM
1799
June 22, 2010 09:09AM
1667
June 23, 2010 07:44AM
1775
June 24, 2010 12:17AM
1785
June 24, 2010 09:17PM
Re: Question on bad execution plan
1633
June 28, 2010 02:39AM
1781
June 28, 2010 08:50PM


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.