From 3783bfbef00c882b9c84626a5c5e1a4740379a39 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 8 Aug 2011 11:58:27 +0000 Subject: [PATCH] 2011-08-08 Ramon Novoa * pandoradb.sql, extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added an index on tagente_modulo.nombre to improve alert listings. Thanks to Manuel Arostegui. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4681 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql | 3 ++- pandora_console/pandoradb.sql | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 59ca5cd834..a4578f8f43 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-08-08 Ramon Novoa + + * pandoradb.sql, extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added an + index on tagente_modulo.nombre to improve alert listings. Thanks to + Manuel Arostegui. + 2011-08-08 Dario Rodriguez * operation/agentes/sla_view.php: Fixed a bug related to a function diff --git a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql index 29d608b0a4..18f00e87c7 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql @@ -177,7 +177,8 @@ CREATE TABLE IF NOT EXISTS `ttag_event` ( ALTER TABLE `tagente_modulo` ADD COLUMN (`unit` text DEFAULT ''); ALTER TABLE `tagente_modulo` ADD COLUMN (`str_warning` text DEFAULT ''); ALTER TABLE `tagente_modulo` ADD COLUMN (`str_critical` text DEFAULT ''); -ALTER TABLE `tagente_modulo` ADD INDEX module(id_modulo); +ALTER TABLE `tagente_modulo` ADD INDEX module (`id_modulo`); +ALTER TABLE `tagente_modulo` ADD INDEX nombre (`nombre`); -- ----------------------------------------------------- -- Table `tevento` diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 9c748ff281..c4a7612e55 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -191,7 +191,8 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` ( KEY `tam_agente` (`id_agente`), KEY `id_tipo_modulo` (`id_tipo_modulo`), KEY `disabled` (`disabled`), - KEY `module` (`id_modulo`) + KEY `module` (`id_modulo`), + KEY `nombre` (`nombre`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- snmp_oid is also used for WMI query