-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize TSQL outbox cleanup by reducing batch size and adding rowloc…
…k hint (#1249)
- Loading branch information
1 parent
52f1e15
commit 1e88b7b
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/SqlPersistence.Tests/ApprovalFiles/OutboxCommandTests.Cleanup.MsSql.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
| ||
delete top (@BatchSize) from [TheSchema].[TheTablePrefixOutboxData] | ||
delete top (@BatchSize) from [TheSchema].[TheTablePrefixOutboxData] with (rowlock) | ||
where Dispatched = 'true' and | ||
DispatchedAt < @DispatchedBefore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters