Skip to content

[Fix] Watched queries with large commits #26

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

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

stevensJourney
Copy link
Collaborator

Recently it was discovered that watched queries could fail when large data volumes were involved.

This behaviour was traced down to the SQLite commit hooks firing before the commit has completed executing. The commit operation takes longer for larger data volumes, which causes watched queries to trigger before the data is available.

This removes the use of the SQLite commit hook for flushing table changes. Tables changes are instead flushed when the write lock is freed. This is slightly less optimal, but is guaranteed for all data to be available before triggering table change notifications.

@stevensJourney stevensJourney merged commit 40c6dd0 into main Apr 24, 2024
3 checks passed
@stevensJourney stevensJourney deleted the fix/watched-query-commit branch April 24, 2024 14:01
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 this pull request may close these issues.

None yet

2 participants