Commit 46202cb4 authored by Jérome Perrin's avatar Jérome Perrin

Add portal_type in *_state indexs, for better performance with worklists

update script:

ALTER TABLE `catalog`
DROP INDEX `validation_state`,
DROP INDEX `simulation_state`,
DROP INDEX `causality_state`,
ADD INDEX `validation_state_portal_type` (`validation_state`, `portal_type`),
ADD INDEX `simulation_state_portal_type` (`simulation_state`, `portal_type`),
ADD INDEX `causality_state_portal_type` (`causality_state`, `portal_type`)
parent 8ad45c81
......@@ -107,9 +107,9 @@ CREATE TABLE `catalog` (\n
KEY `relative_url` (`relative_url`),\n
KEY `Portal Type` (`portal_type`),\n
KEY `opportunity_state` (`opportunity_state`),\n
KEY `validation_state` (`validation_state`),\n
KEY `simulation_state` (`simulation_state`),\n
KEY `causality_state` (`causality_state`),\n
KEY `validation_state_portal_type` (`validation_state`, `portal_type`),\n
KEY `simulation_state_portal_type` (`simulation_state`, `portal_type`),\n
KEY `causality_state_portal_type` (`causality_state`, `portal_type`),\n
KEY `invoice_state` (`invoice_state`),\n
KEY `payment_state` (`payment_state`),\n
KEY `event_state` (`event_state`)\n
......
232
\ No newline at end of file
233
\ 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