mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05: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