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

Mail: SQL: Pragma settings for better performance #287

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jermy-c
Copy link
Collaborator

@jermy-c jermy-c commented Dec 2, 2024

No description provided.

@jermy-c jermy-c self-assigned this Dec 2, 2024
@benbucksch
Copy link
Collaborator

@jermy-c Could you please describe exactly why this change should be made? What tests did you do? How did you measure? What were your results?

I tested WAL mode, and the write speed (when fetching 5-10 folders at once) was identical to before.

@jermy-c
Copy link
Collaborator Author

jermy-c commented Dec 3, 2024

  • synchronous = NORMAL makes the app startup faster
  • journal_mode = WAL makes transactions faster but transactions needs to implemented properly

I'll test and measure this later.

@jermy-c jermy-c force-pushed the jeremy/sql-pragma branch from a3dbd33 to 29a7a17 Compare January 7, 2025 22:37
@benbucksch
Copy link
Collaborator

I'll test and measure this later.

I'm still waiting for the numbers. In my testing, this didn't increate speed at all.

@jermy-c
Copy link
Collaborator Author

jermy-c commented Jan 9, 2025

I'm still waiting for the numbers. In my testing, this didn't increate speed at all.

Sorry, about that. I didn't see any increased speed either.

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