Commit 033e6d63 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

improve an index of stock table for major use cases.

you can apply this change on the existing table by the following query :

ALTER TABLE stock DROP INDEX `section_uid_portal_type`, ADD INDEX `section_uid_portal_type_mirror_section_uid` (`section_uid`,`portal_type`, `mirror_section_uid`);
parent b89849dd
......@@ -82,7 +82,7 @@ CREATE TABLE `stock` (\n
`sub_variation_text` VARCHAR(255),\n
PRIMARY KEY (`uid`, `order_id`),\n
KEY `quantity` (`quantity`),\n
KEY `section_uid_portal_type` (`section_uid`, `portal_type`),\n
KEY `section_uid_portal_type_mirror_section_uid` (`section_uid`, `portal_type`, `mirror_section_uid`),\n
KEY `mirror_section_uid` (`mirror_section_uid`),\n
KEY `mirror_node_uid` (`mirror_node_uid`),\n
KEY `node_uid` (`node_uid`),\n
......
256
\ No newline at end of file
257
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment