ceilometer resource table columns are not indexed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Undecided
|
Ashwin Agate |
Bug Description
resource table has indexes only on internal_id and resource_id columns
mysql> show indexes from resource;
+------
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+------
| resource | 0 | PRIMARY | 1 | internal_id | A | 2 | NULL | NULL | | BTREE | | |
| resource | 1 | ix_resource_
+------
user_id, project_id, source_id and metadata_hash columns are not indexed.
Its important to have all the columns indexed. metadata_hash is looked up at every insert, and others can be used by various queries using project_id, user_id, source_id as query parameters.
See related bugs on creating unique index on those columns https:/
We should still index individual user_id, project_id, source_id and metadata_hash columns.
description: | updated |
Changed in ceilometer: | |
assignee: | nobody → Ashwin Agate (ashwin-agate) |
Changed in ceilometer: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | liberty-3 → 5.0.0 |
Fix proposed to branch: master /review. openstack. org/217453
Review: https:/