This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Add these to speed up OpenCart | |
ALTER TABLE `oc_product` ADD INDEX(`date_available`, `status`); | |
ALTER TABLE `oc_product` ADD INDEX(`status`); | |
ALTER TABLE `oc_url_alias` ADD UNIQUE(`query`); | |
ALTER TABLE `oc_product_to_store` ADD INDEX(`store_id`); | |
ALTER TABLE `oc_category_path` ADD INDEX(`path_id`, `category_id`); | |
ALTER TABLE `oc_category_path` ADD INDEX(`category_id`, `path_id`); | |
ALTER TABLE `oc_product_description` ADD INDEX(`language_id`); | |
ALTER TABLE `oc_category` ADD INDEX (`parent_id`, `status`, `sort_order`); | |
ALTER TABLE `oc_category` ADD INDEX(`sort_order`); |