1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-19 10:28:09 -05:00

move index declarations to appropriate files

This commit is contained in:
jaasen-livefront 2025-06-13 16:22:20 -07:00
parent 010833b8e0
commit 8957a032d2
No known key found for this signature in database
4 changed files with 15 additions and 16 deletions

View File

@ -15,3 +15,8 @@ CREATE NONCLUSTERED INDEX IX_CollectionGroup_GroupId
INCLUDE (ReadOnly, HidePasswords, Manage)
GO
CREATE NONCLUSTERED INDEX IX_CollectionGroup_GroupId_ReadOnly
ON dbo.CollectionGroup (GroupId, ReadOnly)
INCLUDE (CollectionId);
GO

View File

@ -15,3 +15,8 @@ CREATE NONCLUSTERED INDEX IX_CollectionUser_OrganizationUserId
INCLUDE (ReadOnly, HidePasswords, Manage)
GO
CREATE NONCLUSTERED INDEX IX_CollectionUser_OrganizationUserId_ReadOnly
ON dbo.CollectionUser (OrganizationUserId, ReadOnly)
INCLUDE (CollectionId);
GO

View File

@ -87,19 +87,3 @@ BEGIN
ORDER BY
ST.CreationDate DESC;
END
GO
CREATE NONCLUSTERED INDEX IX_CollectionGroup_GroupId_ReadOnly
ON dbo.CollectionGroup (GroupId, ReadOnly)
INCLUDE (CollectionId);
GO
CREATE NONCLUSTERED INDEX IX_CollectionUser_OrganizationUserId_ReadOnly
ON dbo.CollectionUser (OrganizationUserId, ReadOnly)
INCLUDE (CollectionId);
GO
CREATE NONCLUSTERED INDEX IX_SecurityTask_Status_OrgId_CreationDateDesc
ON dbo.SecurityTask (Status, OrganizationId, CreationDate DESC)
INCLUDE (CipherId, [Type], RevisionDate);
GO

View File

@ -19,3 +19,8 @@ CREATE NONCLUSTERED INDEX [IX_SecurityTask_CipherId]
GO
CREATE NONCLUSTERED INDEX [IX_SecurityTask_OrganizationId]
ON [dbo].[SecurityTask]([OrganizationId] ASC) WHERE OrganizationId IS NOT NULL;
CREATE NONCLUSTERED INDEX IX_SecurityTask_Status_OrgId_CreationDateDesc
ON dbo.SecurityTask (Status, OrganizationId, CreationDate DESC)
INCLUDE (CipherId, [Type], RevisionDate);
GO