Commit 6b043e1d authored by Vincent Pelletier's avatar Vincent Pelletier

Replace node_uid index by a composite index on node_uid, simulation_state and...

Replace node_uid index by a composite index on node_uid, simulation_state and date. This index is used by the WHERE expression in Resource_zGetTrackingList.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18126 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca2b4f21
...@@ -102,11 +102,11 @@ CREATE TABLE `item` (\n ...@@ -102,11 +102,11 @@ CREATE TABLE `item` (\n
`variation_text` VARCHAR(255),\n `variation_text` VARCHAR(255),\n
`simulation_state` VARCHAR(255) default \'\',\n `simulation_state` VARCHAR(255) default \'\',\n
KEY `uid` (`uid`),\n KEY `uid` (`uid`),\n
KEY `node_uid` (`node_uid`),\n
KEY `section_uid` (`section_uid`),\n KEY `section_uid` (`section_uid`),\n
KEY `resource_uid` (`resource_uid`),\n KEY `resource_uid` (`resource_uid`),\n
KEY `variation_text` (`variation_text`),\n KEY `variation_text` (`variation_text`),\n
KEY `aggregate_simulation_state_date` (`aggregate_uid`,`simulation_state`,`date`)\n KEY `aggregate_simulation_state_date` (`aggregate_uid`,`simulation_state`,`date`),\n
KEY `node_simulation_state_date` (`node_uid`,`simulation_state`,`date`)\n
) TYPE=InnoDB;\n ) TYPE=InnoDB;\n
</string> </value> </string> </value>
</item> </item>
...@@ -158,11 +158,11 @@ CREATE TABLE `item` (\n ...@@ -158,11 +158,11 @@ CREATE TABLE `item` (\n
`variation_text` VARCHAR(255),\n `variation_text` VARCHAR(255),\n
`simulation_state` VARCHAR(255) default \'\',\n `simulation_state` VARCHAR(255) default \'\',\n
KEY `uid` (`uid`),\n KEY `uid` (`uid`),\n
KEY `node_uid` (`node_uid`),\n
KEY `section_uid` (`section_uid`),\n KEY `section_uid` (`section_uid`),\n
KEY `resource_uid` (`resource_uid`),\n KEY `resource_uid` (`resource_uid`),\n
KEY `variation_text` (`variation_text`),\n KEY `variation_text` (`variation_text`),\n
KEY `aggregate_simulation_state_date` (`aggregate_uid`,`simulation_state`,`date`)\n KEY `aggregate_simulation_state_date` (`aggregate_uid`,`simulation_state`,`date`),\n
KEY `node_simulation_state_date` (`node_uid`,`simulation_state`,`date`)\n
) TYPE=InnoDB;\n ) TYPE=InnoDB;\n
</string> </value> </string> </value>
</item> </item>
......
86 87
\ No newline at end of file \ 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