Bug #52597 | Mysql Cluster 7.0.13 Does not Report Correct Cardinality | ||
---|---|---|---|
Submitted: | 5 Apr 2010 15:22 | Modified: | 12 Apr 2010 5:27 |
Reporter: | Jakob Lorberblatt | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | 7.0.13 | OS: | FreeBSD (8.0) |
Assigned to: | CPU Architecture: | Any | |
Tags: | cardinality, INDEX, Optimizer, partitioning |
[5 Apr 2010 15:22]
Jakob Lorberblatt
[9 Apr 2010 15:19]
Tom Farvour
This problem still persists in our cluster, has anyone come up with a possible solution for this? Using FORCE INDEX () everywhere seems ridiculous. Why are the mysql/API nodes reporting incorrect cardinality? Regards, -Tom
[9 Apr 2010 22:40]
Tom Farvour
Come on guys, this is clearly WRONG! What is going on here? mysql> show indexes in transactions; +--------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | +--------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ | transactions | 0 | PRIMARY | 1 | id | A | 29390213 | NULL | NULL | | BTREE | | | transactions | 1 | mem_id | 1 | mem_id | A | 29390213 | NULL | NULL | | BTREE | | | transactions | 1 | art_id | 1 | art_id | A | 29390213 | NULL | NULL | | BTREE | | | transactions | 1 | author | 1 | author | A | 29390213 | NULL | NULL | | BTREE | | | transactions | 1 | email | 1 | email | A | 29390213 | NULL | NULL | | BTREE | | | transactions | 1 | date | 1 | date | A | 29390213 | NULL | NULL | | BTREE | | | transactions | 1 | editor | 1 | editor | A | 29390213 | NULL | NULL | | BTREE | | | transactions | 1 | action | 1 | action | A | 29390213 | NULL | NULL | | BTREE | | | transactions | 1 | action_by | 1 | action_by | A | 29390213 | NULL | NULL | | BTREE | | +--------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ 9 rows in set (0.01 sec)
[12 Apr 2010 5:27]
Sveta Smirnova
Thank you for the report. This is duplicate of bug #44760