Ticket #528 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

duplicate keys in o.o.p.products_i

Reported by: xfade Assigned to: piotras
Priority: major Milestone: 8.09.4 Ragnaroek
Component: Midgard Core Version: 8.09 Ragnaroek
Keywords: Cc:

Description (Last modified by bergie)

There are multiple keys on lang in org_openpsa_products_product_i;

mysql> show keys from org_openpsa_products_product_i;
+--------------------------------+------------+----------------------------------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
| Table                          | Non_unique | Key_name                                     | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
+--------------------------------+------------+----------------------------------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
| org_openpsa_products_product_i |          0 | PRIMARY                                      |            1 | id          | A         |         811 |     NULL | NULL   |      | BTREE      |         |
| org_openpsa_products_product_i |          1 | org_openpsa_products_product_i_sitegroup_idx |            1 | sitegroup   | A         |           1 |     NULL | NULL   |      | BTREE      |         |
| org_openpsa_products_product_i |          1 | org_openpsa_products_product_i_sid_idx       |            1 | sid         | A         |         811 |     NULL | NULL   |      | BTREE      |         |
| org_openpsa_products_product_i |          1 | org_openpsa_products_product_i_sid_idx       |            2 | lang        | A         |         811 |     NULL | NULL   |      | BTREE      |         |
| org_openpsa_products_product_i |          1 | org_openpsa_products_product_i_lang_idx      |            1 | lang        | A         |           1 |     NULL | NULL   |      | BTREE      |         |
| org_openpsa_products_product_i |          1 | org_openpsa_products_product_i_title_idx     |            1 | title       | A         |         405 |      200 | NULL   |      | BTREE      |         |
| org_openpsa_products_product_i |          1 | sitegroup                                    |            1 | sitegroup   | A         |           1 |     NULL | NULL   |      | BTREE      |         |
| org_openpsa_products_product_i |          1 | lang_idx                                     |            1 | lang        | A         |           1 |     NULL | NULL   |      | BTREE      |         |
| org_openpsa_products_product_i |          1 | sid_idx                                      |            1 | sid         | A         |         811 |     NULL | NULL   |      | BTREE      |         |
+--------------------------------+------------+----------------------------------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
9 rows in set (0.00 sec)

Change History

11/17/08 21:47:53 changed by bergie

  • owner changed from bergie to piotras.
  • component changed from MidCOM core to Midgard Core.
  • description changed.

Reassigning to Piotras as the indexes are generated by core.

11/20/08 16:01:18 changed by piotras

  • status changed from new to assigned.
  • milestone changed from 8.09.3 Ragnaroek to 8.09.4 Ragnaroek.

Postponing to .4. We need additional more complex indexes(like sitegroup,lang,id). Then core can detect alien indexes.

02/24/09 10:19:09 changed by piotras

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [20646]) Remove TABLE_COLNAME_idx indexes. Fixes #528