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

Subscriptions performance improvements #88

Merged
merged 36 commits into from
Nov 16, 2023
Merged

Subscriptions performance improvements #88

merged 36 commits into from
Nov 16, 2023

Conversation

jeromegn
Copy link
Member

@jeromegn jeromegn commented Nov 9, 2023

Subscriptions were affecting the main database because there was only 1 subscriptions database and it was being ATTACHed. Any writes to either would lock both.

These changes greatly improve subscriptions performances by:

  • Using a dedicated SQLite database per subscription
  • Never writing to the main database or to the subscription database when attached (therefore preventing any write locks from occurring)

…indexes and sleeping between clears to let the DB breath
@jeromegn jeromegn merged commit 1c5096b into main Nov 16, 2023
2 of 3 checks passed
@jeromegn jeromegn deleted the subs-perf branch November 16, 2023 18:23
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.

1 participant