mirror of
https://github.com/bitwarden/server.git
synced 2025-06-19 10:28:09 -05:00
add indexes. update filename. add GO statement
This commit is contained in:
parent
5d0e32a0bd
commit
010833b8e0
@ -87,3 +87,19 @@ 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
|
||||
|
@ -87,3 +87,19 @@ 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
|
Loading…
x
Reference in New Issue
Block a user