Skip to content

Instantly share code, notes, and snippets.

@kalenjordan
Created April 6, 2016 18:33
Show Gist options
  • Save kalenjordan/3d6c311524e02587db91cdbcb7cfe62c to your computer and use it in GitHub Desktop.
Save kalenjordan/3d6c311524e02587db91cdbcb7cfe62c to your computer and use it in GitHub Desktop.
ALTER TABLE `sales_flat_order_item` ADD INDEX `IDX_SALES_FLAT_ORDER_ITEM_PRODUCT_ID` (`product_id`);
ALTER TABLE `cataloginventory_stock_status` ADD INDEX `IDX_CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS` (`stock_status`);
ALTER TABLE `cataloginventory_stock_status` ADD INDEX `IDX_CATALOGINVENTORY_STOCK_STATUS_PRODUCT_ID` (`product_id`);
ALTER TABLE `sales_flat_order` ADD INDEX `IDX_SALES_FLAT_ORDER_CUSTOMER_EMAIL` (`customer_email`);
ALTER TABLE `sales_flat_order` ADD INDEX `IDX_SALES_FLAT_ORDER_UPDATED_AT` (`updated_at`);
ALTER TABLE `sales_flat_quote` ADD INDEX `IDX_SALES_FLAT_QUOTE_CUSTOMER_EMAIL` (`customer_email`);
ALTER TABLE `sales_flat_quote` ADD INDEX `IDX_SALES_FLAT_QUOTE_UPDATED_AT` (`updated_at`);
ALTER TABLE `sales_flat_quote_item` ADD INDEX `IDX_SALES_FLAT_QUOTE_ITEM_CREATED_AT` (`created_at`);
ALTER TABLE `sales_flat_quote_item` ADD INDEX `IDX_SALES_FLAT_QUOTE_ITEM_UPDATED_AT` (`updated_at`);
ALTER TABLE `catalog_product_entity` ADD INDEX `IDX_CATALOG_PRODUCT_ENTITY_UPDATED_AT` (`updated_at`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment