mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
DB-Schema/Characters: Add indexes for some columns used in JOINs in the core
--HG-- branch : trunk
This commit is contained in:
@@ -1387,7 +1387,8 @@ CREATE TABLE `groups` (
|
||||
`groupType` mediumint(8) unsigned NOT NULL,
|
||||
`difficulty` tinyint(3) unsigned NOT NULL default '0',
|
||||
`raiddifficulty` int(11) UNSIGNED NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`)
|
||||
PRIMARY KEY (`guid`),
|
||||
KEY `leaderGuid` (`leaderGuid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1663,7 +1664,8 @@ CREATE TABLE `instance` (
|
||||
`data` longtext,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `map` (`map`),
|
||||
KEY `resettime` (`resettime`)
|
||||
KEY `resettime` (`resettime`),
|
||||
KEY `difficulty` (`difficulty`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1687,7 +1689,8 @@ CREATE TABLE `instance_reset` (
|
||||
`mapid` int(11) unsigned NOT NULL default '0',
|
||||
`difficulty` tinyint(1) unsigned NOT NULL default '0',
|
||||
`resettime` bigint(40) NOT NULL default '0',
|
||||
PRIMARY KEY (`mapid`,`difficulty`)
|
||||
PRIMARY KEY (`mapid`,`difficulty`),
|
||||
KEY `difficulty` (`difficulty`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
1
sql/updates/9792_characters_groups.sql
Normal file
1
sql/updates/9792_characters_groups.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `groups` ADD INDEX ( `leaderGuid` );
|
||||
1
sql/updates/9792_characters_instance.sql
Normal file
1
sql/updates/9792_characters_instance.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `instance` ADD INDEX ( `difficulty` );
|
||||
1
sql/updates/9792_characters_instance_reset.sql
Normal file
1
sql/updates/9792_characters_instance_reset.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `instance_reset` ADD INDEX ( `difficulty` );
|
||||
Reference in New Issue
Block a user