Commit 92bd4def authored by Jérome Perrin's avatar Jérome Perrin

mysql_innodb_catalog: include date in resource_node_uid index

This makes this index usable in queries involving flows of movements a resource
on a node at a given date, and still usable for movements of a resource on a
node.
parent e1b5c5e9
......@@ -40,7 +40,7 @@ CREATE TABLE `stock` (
KEY `funding_uid` (`funding_uid`),
KEY `explanation_uid` (`explanation_uid`),
KEY `state_section_node_date` (`simulation_state`, `section_uid`, `node_uid`, `date`),
KEY `resource_node_uid` (`resource_uid`, `node_uid`),
KEY `resource_node_uid_date` (`resource_uid`, `node_uid`, `date`),
KEY `resource_section_node_uid` (`resource_uid`, `section_uid`, `node_uid`, `simulation_state`),
KEY `date` (`date`)
) ENGINE=InnoDB;
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