1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-24 17:17:40 +01:00

index updates

This commit is contained in:
Kyle Spearrin 2017-11-11 21:29:29 -05:00
parent 221f5fa154
commit 9fbbf12290
2 changed files with 9 additions and 2 deletions

View File

@ -21,6 +21,7 @@ CREATE NONCLUSTERED INDEX [IX_Cipher_OrganizationId_Type]
GO GO
CREATE NONCLUSTERED INDEX [IX_Cipher_UserId_Type] CREATE NONCLUSTERED INDEX [IX_Cipher_UserId_Type_IncludeAll]
ON [dbo].[Cipher]([UserId] ASC, [Type] ASC); ON [dbo].[Cipher]([UserId] ASC, [Type] ASC)
INCLUDE ([OrganizationId], [Data], [Favorites], [Folders], [Attachments], [CreationDate], [RevisionDate]);

View File

@ -8,3 +8,9 @@
CONSTRAINT [FK_Folder_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id]) CONSTRAINT [FK_Folder_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
); );
GO
CREATE NONCLUSTERED INDEX [IX_Folder_UserId_IncludeAll]
ON [dbo].[Folder]([UserId] ASC)
INCLUDE ([Name], [CreationDate], [RevisionDate]);