mirror of https://github.com/apache/cloudstack.git
bug 9519 : add index to avoid table locking
Conflicts: setup/db/create-index-fk.sql
This commit is contained in:
parent
54ee9b0520
commit
99d1cb4718
|
|
@ -113,4 +113,4 @@ ALTER TABLE `cloud`.`instance_group_vm_map` ADD CONSTRAINT `fk_instance_group_vm
|
|||
ALTER TABLE `cloud`.`ssh_keypairs` ADD CONSTRAINT `fk_ssh_keypairs__account_id` FOREIGN KEY `fk_ssh_keypair__account_id` (`account_id`) REFERENCES `account` (`id`) ON DELETE CASCADE;
|
||||
ALTER TABLE `cloud`.`ssh_keypairs` ADD CONSTRAINT `fk_ssh_keypairs__domain_id` FOREIGN KEY `fk_ssh_keypair__domain_id` (`domain_id`) REFERENCES `domain` (`id`) ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE `cloud`.`usage_event`ADD INDEX `i_usage_event__created`(`created`);
|
||||
ALTER TABLE `cloud`.`usage_event` ADD INDEX `i_usage_event__created`(`created`);
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ ALTER TABLE `cloud`.`storage_pool` MODIFY COLUMN `uuid` varchar(255) UNIQUE;
|
|||
ALTER TABLE `cloud`.`user_statistics` DROP KEY `account_id`;
|
||||
ALTER TABLE `cloud`.`user_statistics` ADD UNIQUE KEY `account_id` (`account_id`,`data_center_id`, `public_ip_address`, `device_id`,`device_type`);
|
||||
|
||||
ALTER TABLE `cloud`.`usage_event` ADD INDEX `i_usage_event__created`(`created`);
|
||||
|
||||
UPDATE `cloud`.`vm_instance` SET ha_enabled=0 WHERE type='ConsoleProxy';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue