Skip to content
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

Align NHibernate Outbox indexes with the ones created by SqlPersistence #1220

Open
mauroservienti opened this issue Nov 30, 2024 · 0 comments

Comments

@mauroservienti
Copy link
Member

Describe the suggested improvement

Is your improvement related to a problem? Please describe.

When doing outbox cleanup, a missing index (present when using SqlPersistence) results in suboptimal performance.

SqlPersistence creates an index for the Dispatched and DispatchedAt columns in the Outbox table. The Outbox cleanup process uses those columns at read time. Systems under heavy load tend to deal with large and high-throughput Outbox tables, and the cleanup process, without proper indexes, could significantly impact system performance.

Describe the suggested solution

Create the missing index.

Describe alternatives you've considered

Do nothing and document that the index can be manually created if the system requires it.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant