| Anonymous | Login | Signup for a new account | 2010-09-02 10:40 EDT |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||||
| 0001333 | [Cacti] Database | tweak | always | 2008-11-03 11:05 | 2010-08-19 15:42 | ||||||||
| Reporter | BorisL | View Status | public | ||||||||||
| Assigned To | gandalf | ||||||||||||
| Priority | normal | Resolution | fixed | Platform | |||||||||
| Status | resolved | OS | |||||||||||
| Projection | none | OS Version | |||||||||||
| ETA | none | Fixed in Version | 0.8.8 | Product Version | 0.8.7b | ||||||||
| Target Version | Product Build | ||||||||||||
| Summary | 0001333: Lack of scheme indexes | ||||||||||||
| Description |
Lack of indexes in default Cacti's scheme turns out as poor performance. This set of indexes helps to improve performance on big environments 10x or even more (in web interface and polling): data_input_data: KEY `data_template_data_id` (`data_template_data_id`) data_local: KEY `host_id_snmp_query_id_snmp_index` (`host_id`,`snmp_query_id`,`snmp_index`) data_template_rrd: KEY `local_data_id_data_source_name` (`local_data_id`,`data_source_name`) graph_templates_item: KEY `graph_template_id_local_graph_id` (`graph_template_id`,`local_graph_id`) KEY `local_graph_template_item_id` (`local_graph_template_item_id`) host_snmp_cache: KEY `host_id_snmp_query_id_snmp_index` (`host_id`,`snmp_query_id`,`snmp_index`) poller_item: KEY `local_data_id_rrd_path` (`local_data_id`,`rrd_path`) KEY `host_id_rrd_next_step` (`host_id`,`rrd_next_step`) Or in SQL syntax: CREATE INDEX `data_template_data_id` ON `data_input_data` (`data_template_data_id`); CREATE INDEX `host_id_snmp_query_id_snmp_index` ON data_local (`host_id`,`snmp_query_id`,`snmp_index`); CREATE INDEX `local_data_id_data_source_name` ON data_template_rrd (`local_data_id`,`data_source_name`); CREATE INDEX `graph_template_id_local_graph_id` ON graph_templates_item (`graph_template_id`,`local_graph_id`); CREATE INDEX `local_graph_template_item_id` ON graph_templates_item (`local_graph_template_item_id`); CREATE INDEX `host_id_snmp_query_id_snmp_index` ON host_snmp_cache (`host_id`,`snmp_query_id`,`snmp_index`); CREATE INDEX `local_data_id_rrd_path` ON poller_item (`local_data_id`,`rrd_path`); CREATE INDEX `host_id_rrd_next_step` ON poller_item (`host_id`,`rrd_next_step`); |
||||||||||||
| Steps To Reproduce | |||||||||||||
| Additional Information | |||||||||||||
| Tags | No tags attached. | ||||||||||||
| Attached Files | |||||||||||||
|
|
|||||||||||||
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |