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

Provide good default PRAGMAS for SQLite #848

Merged
merged 6 commits into from
Oct 18, 2024

Conversation

Sillyvan
Copy link
Contributor

Addressing Issue #773

What has been done

Just a very basic way of setting PRAGMAS on connect.
Defaults inspired by the official sqlite ruby adapter.

Why

SQLite is very much a DB that can be used in production nowadays. Due to age and importance of compatibility those settings are not default. Especially journal_mode = WAL will improve the experience a lot by not be blocking on reads or writes anymore.

If there is anything missing from my PR or if there is any concerns or other opinions im happy to hear about it.

@jondot jondot merged commit b7b9438 into loco-rs:master Oct 18, 2024
17 checks passed
@jondot jondot added this to the 0.11.0 milestone Oct 18, 2024
@Sillyvan Sillyvan deleted the sqlite-optimizations branch October 18, 2024 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.

3 participants