From 4786884917dbcd0a191dc04b202268c52a91e7f6 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Mon, 12 Jan 2015 23:15:09 +0000 Subject: [PATCH] Add DB index Compliments #6555 --- SQL/tgstation_schema.sql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SQL/tgstation_schema.sql b/SQL/tgstation_schema.sql index 5e053d8e110..30fd894e965 100644 --- a/SQL/tgstation_schema.sql +++ b/SQL/tgstation_schema.sql @@ -202,6 +202,11 @@ CREATE TABLE `library` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; +-- +-- Create an index to speed up the libary +-- +CREATE INDEX deleted_idx ON `library` (`deleted`); + -- -- Table structure for table `player` -- @@ -327,4 +332,4 @@ CREATE TABLE `privacy` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2013-03-24 18:02:35 \ No newline at end of file +-- Dump completed on 2013-03-24 18:02:35