cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From koushik-das <>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-9340: General DB Optimization
Date Wed, 04 May 2016 05:48:47 GMT
Github user koushik-das commented on a diff in the pull request:
    --- Diff: setup/db/db/schema-481to490.sql ---
    @@ -413,3 +413,26 @@ VIEW `user_vm_view` AS
     -- Add property
     INSERT INTO `cloud`.`configuration` (`category`, `instance`, `component`, `name`, `description`,
`default_value`, `updated`, `scope`, `is_dynamic`) VALUES ('Advanced', 'DEFAULT', 'CapacityManager',
'', 'Exclude cluster from storage operations', 'false',
now(), 'Cluster', '1');
    +----- 3) Missing indexes (Add indexes to avoid full table scans)
    +ALTER TABLE `cloud`.`op_it_work` ADD INDEX `i_type_and_updated` (`type` ASC, `updated_at`
    +ALTER TABLE `cloud`.`vm_root_disk_tags` ADD INDEX `i_vm_id` (`vm_id` ASC);
    +ALTER TABLE `cloud`.`vm_compute_tags` ADD INDEX `i_vm_id` (`vm_id` ASC);
    +ALTER TABLE `cloud`.`vm_network_map` ADD INDEX `i_vm_id` (`vm_id` ASC);
    +ALTER TABLE `cloud`.`ssh_keypairs` ADD INDEX `i_public_key` (`public_key` ASC);
    --- End diff --
    The public_key field is varchar(5120) and creating an index on this is failing with error

    Error Code: 1071. Specified key was too long; max key length is 767 bytes

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message