diff --git a/config/dev.exs b/config/dev.exs index a24b0dc..803b1bd 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -4,6 +4,8 @@ import Config config :simpleshop_theme, SimpleshopTheme.Repo, database: Path.expand("../simpleshop_theme_dev.db", __DIR__), pool_size: 5, + journal_mode: :wal, + busy_timeout: 5000, stacktrace: true, show_sensitive_data_on_connection_error: true diff --git a/config/runtime.exs b/config/runtime.exs index 4c8b017..d037018 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -30,7 +30,9 @@ if config_env() == :prod do config :simpleshop_theme, SimpleshopTheme.Repo, database: database_path, - pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5") + pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5"), + journal_mode: :wal, + busy_timeout: 5000 # The secret key base is used to sign/encrypt cookies and other secrets. # A default value is used in config/dev.exs and config/test.exs but you