|
|||||||||||
|
Indexes in NDB tables not used
From: Pavel Janík <Pavel(at)Janik.cz>
Date: Tue Sep 25 2007 - 15:02:33 EDT
my NDB tables do not use indexes as InnoDB tables. To try yourself:
DROP DATABASE pjtest;
explain select * from pokus;
The result is:
mysql> explain select * from pokus;
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+-------+---------------+--------- +---------+------+------+-------------+ | 1 | SIMPLE | pokus | index | NULL | PRIMARY | 4 | NULL | 2 | Using index | +----+-------------+-------+-------+---------------+--------- +---------+------+------+-------------+ 1 row in set (0.00 sec)
mysql> explain select * from pokusndb;
| 1 | SIMPLE | pokusndb | ALL | NULL | NULL | NULL | NULL | 2 | | +----+-------------+----------+------+---------------+------+--------- +------+------+-------+ 1 row in set (0.00 sec) -> NDB table doesn't use index. Why? Do you have any idea what to try? My config:
[ndbd default]
-- Pavel Janík -- MySQL Cluster Mailing List For list archives: http://lists.mysql.com/cluster To unsubscribe: http://lists.mysql.com/cluster?unsub=lists@pantek.comReceived on Tue Sep 25 15:03:36 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:15:15 EDT |
||||||||||
|
|||||||||||