From ffcbeb49b4f62f30835b0eed0cfc9e5ed2b5eda0 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Thu, 28 Nov 2024 17:22:56 +0000 Subject: [PATCH] Attempt at shrinking memory usage --- config/dev.exs | 1 + config/runtime.exs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/dev.exs b/config/dev.exs index 1d692ec8..502a7b99 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -3,6 +3,7 @@ import Config # Configure your database config :music_library, MusicLibrary.Repo, database: Path.expand("../data/music_library_dev.db", __DIR__), + cache_size: -8000, pool_size: 10, stacktrace: true, show_sensitive_data_on_connection_error: true diff --git a/config/runtime.exs b/config/runtime.exs index c7dc94ac..b5f64ee7 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -39,7 +39,7 @@ if config_env() == :prod do config :music_library, MusicLibrary.Repo, database: database_path, # 16MB * pool_size = base memory usage - cache_size: -16000, + cache_size: -8000, pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5") # The secret key base is used to sign/encrypt cookies and other secrets.