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

Add default pragma values for newly opened databases #77

Open
noteflakes opened this issue Jun 13, 2024 · 1 comment
Open

Add default pragma values for newly opened databases #77

noteflakes opened this issue Jun 13, 2024 · 1 comment

Comments

@noteflakes
Copy link
Contributor

Some sensible defaults here: https://gcollazo.com/optimal-sqlite-settings-for-django/

# define pragmas manually
Extralite.default_pragmas = {
  ...
}

# one possibility for letting extralite manage it
Extralite.modern_settings!

# another, somewhat better possibility:
require 'extralite/sensible_default_pragmas'
@fractaledmind
Copy link

Minus the temp_store setting, these are exactly the defaults that @oldmoe and I recommend and are now default in Rails:

https://fractaledmind.github.io/2023/09/07/enhancing-rails-sqlite-fine-tuning/
rails/rails#49349

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

No branches or pull requests

2 participants