mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 11:04:31 -05:00
delete ciphers in smaller batches. ref #18
This commit is contained in:
parent
b04843b124
commit
2bc7799f3c
@ -6,11 +6,17 @@ BEGIN
|
|||||||
|
|
||||||
BEGIN TRANSACTION User_DeleteById
|
BEGIN TRANSACTION User_DeleteById
|
||||||
|
|
||||||
DELETE
|
DECLARE @BatchSize INT = 100
|
||||||
FROM
|
WHILE @BatchSize > 0
|
||||||
[dbo].[Cipher]
|
BEGIN
|
||||||
WHERE
|
DELETE
|
||||||
[UserId] = @Id
|
FROM
|
||||||
|
[dbo].[Cipher]
|
||||||
|
WHERE
|
||||||
|
[UserId] = @Id
|
||||||
|
|
||||||
|
SET @BatchSize = @@ROWCOUNT
|
||||||
|
END
|
||||||
|
|
||||||
DELETE
|
DELETE
|
||||||
FROM
|
FROM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user