mirror of
https://github.com/bitwarden/server
synced 2025-12-19 17:53:44 +00:00
update more sprocs to use proper index
This commit is contained in:
@@ -15,7 +15,8 @@ BEGIN
|
||||
FROM
|
||||
[dbo].[Cipher]
|
||||
WHERE
|
||||
[OrganizationId] = @Id
|
||||
[UserId] IS NULL
|
||||
AND [OrganizationId] = @Id
|
||||
|
||||
SET @BatchSize = @@ROWCOUNT
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ BEGIN
|
||||
LEFT JOIN
|
||||
[CTE] ON C.[Id] = [CTE].[Id]
|
||||
WHERE
|
||||
C.[OrganizationId] = @Id
|
||||
C.[UserId] IS NULL
|
||||
AND C.[OrganizationId] = @Id
|
||||
|
||||
UPDATE
|
||||
[dbo].[Organization]
|
||||
|
||||
Reference in New Issue
Block a user