Slow query detected in Valeo server (table GROUP_USER)
This commit is contained in:
dheeyi william
2017-03-15 12:50:22 -04:00
parent a77c8e99cc
commit 086bf63d6e
2 changed files with 5 additions and 1 deletions

View File

@@ -612,6 +612,9 @@
<rule name="maxLength" value="32" message="User UID can be no larger than ${value} in size"/>
<rule name="required" message="User UID is required."/>
</validator>
<index name="indexForUsrUid">
<index-column name="USR_UID"/>
</index>
</table>
<table name="HOLIDAY" idMethod="native">
<vendor type="mysql">

View File

@@ -282,7 +282,8 @@ CREATE TABLE `GROUP_USER`
(
`GRP_UID` VARCHAR(32) default '0' NOT NULL,
`USR_UID` VARCHAR(32) default '0' NOT NULL,
PRIMARY KEY (`GRP_UID`,`USR_UID`)
PRIMARY KEY (`GRP_UID`,`USR_UID`),
KEY `indexForUsrUid`(`USR_UID`)
)ENGINE=InnoDB DEFAULT CHARSET='utf8';
#-----------------------------------------------------------------------------
#-- HOLIDAY