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

Missing indices on tables #495

Open
Arkatufus opened this issue Dec 4, 2024 · 0 comments · May be fixed by #496
Open

Missing indices on tables #495

Arkatufus opened this issue Dec 4, 2024 · 0 comments · May be fixed by #496

Comments

@Arkatufus
Copy link
Contributor

Arkatufus commented Dec 4, 2024

Version Information

Version of Akka.Persistence.Sql? Latest

Describe the bug

All SQL tables are missing crucial indexes that potentially makes query slower

We need to add these indexes available on all flavor of SQL tables (example is for MSSql):

CREATE INDEX IX_journal_persistence_id_ordering ON journal (persistence_id, ordering DESC);
CREATE INDEX IX_journal_persistence_id ON journal (persistence_id);
@Arkatufus Arkatufus linked a pull request Dec 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant