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

WAL replaying optimization for incomplete transactions #5120

Open
royi-luo opened this issue Mar 25, 2025 · 0 comments
Open

WAL replaying optimization for incomplete transactions #5120

royi-luo opened this issue Mar 25, 2025 · 0 comments

Comments

@royi-luo
Copy link
Contributor

Description

Our WAL replaying can be quite slow. This can lead to cases like in #5016 where upon killing a long-lasting query and then reloading the DB it can appear like the DB is hanging (when in reality we are just replaying the query).

In the above case uncommitted records actually don't need to be replayed. Thus one possible optimization would be to deserialize records in batches and only replay the records if they are followed by a commit. In the above case this would mean that we only pay the cost of deserializing records and not the cost of replaying them.

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

2 participants