-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize TSQL outbox cleanup by reducing batch size and adding rowlock hint #1249
Conversation
…t not be over 4.000 Google states multiple resources that either going over 4.000 or 5.000 rows results into lock escalation from row to page/table locks
…n and prevent dead-locks with regular outbox operations as outbox deletes do not have to be efficient
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Given the approval, it seems like this was validated as having some benefit, so why was it not followed through on? |
No specific reason except this didn't show up in the github notifications and due to your comment it did. |
I would have thought that the ping from the bot would have triggered the same notification, but ok. |
Resolves:
Optimize TSQL outbox cleanup by
To prevent lock escalation to page/table locks the number of rows must not be over 4.000 or 5.000 rows
Google states multiple resources that either going over 4.000 or 5.000 rows results into lock escalation from row to page/table locks: