1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

index tuning script

This commit is contained in:
Kyle Spearrin
2017-11-13 08:53:25 -05:00
parent aa045f7775
commit 39baf2a9be
3 changed files with 49 additions and 0 deletions

View File

@ -15,3 +15,9 @@
CONSTRAINT [FK_OrganizationUser_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
);
GO
CREATE NONCLUSTERED INDEX [IX_OrganizationUser_UserIdOrganizationIdStatus]
ON [dbo].[OrganizationUser]([UserId] ASC, [OrganizationId] ASC, [Status] ASC)
INCLUDE ([AccessAll]);