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

chore: run sqlite optimize at startup and interval #621

Merged
merged 3 commits into from
Nov 28, 2024
Merged

Conversation

dav1do
Copy link
Contributor

@dav1do dav1do commented Nov 27, 2024

We previously ran optimize on shutdown, but the sqlite docs recommend setting the value to 0x10002 and then run PRAGMA optimize daily. Now we do that when starting the ceramic one daemon. Also updated sqlx to the newest version and added a test to show the start up ordering task exits when it's unable to process events.

@dav1do dav1do requested review from stbrody and a team as code owners November 27, 2024 21:48
@dav1do dav1do requested review from smrz2001 and removed request for a team November 27, 2024 21:48
Copy link
Collaborator

@smrz2001 smrz2001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@dav1do dav1do added this pull request to the merge queue Nov 28, 2024
Merged via the queue into main with commit a390db6 Nov 28, 2024
5 checks passed
@dav1do dav1do deleted the chore/db-optimize branch November 28, 2024 06:03
@smrz2001 smrz2001 mentioned this pull request Dec 9, 2024
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.

2 participants