schema: add missing index to reduce table scans

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2024-05-08 15:04:38 +05:30
parent 5750e56be5
commit 54accfdc0a
1 changed files with 2 additions and 0 deletions

View File

@ -437,3 +437,5 @@ ALTER TABLE `cloud`.`host` ADD INDEX `i_host__type` (`type`);
ALTER TABLE `cloud`.`host` ADD INDEX `i_host__resource_state` (`resource_state`);
ALTER TABLE `cloud`.`storage_pool` ADD INDEX `i_storage_pool__pool_type` (`pool_type`);
ALTER TABLE op_host_planner_reservation ADD INDEX `i_op_host_planner_reservation__resource_usage`(`resource_usage`);