mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Add index on EbookId
There are several queries that join the `Projects` and `Ebooks` tables. An index speeds up those joins.
This commit is contained in:
parent
eacd7306b0
commit
dad5df0059
1 changed files with 2 additions and 1 deletions
|
@ -15,5 +15,6 @@ CREATE TABLE IF NOT EXISTS `Projects` (
|
|||
`LastCommitTimestamp` DATETIME NULL DEFAULT NULL,
|
||||
`LastDiscussionTimestamp` DATETIME NULL DEFAULT NULL,
|
||||
`IsStatusAutomaticallyUpdated` tinyint(1) NOT NULL DEFAULT 1,
|
||||
PRIMARY KEY (`ProjectId`)
|
||||
PRIMARY KEY (`ProjectId`),
|
||||
KEY `index1` (`EbookId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue