From 62b5e23fcdd41e514ada757d7a614c775a19c08e Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 25 Nov 2024 10:54:39 +0000 Subject: [PATCH] (EXP) Lower sqlite cache size in production --- config/runtime.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/runtime.exs b/config/runtime.exs index 4baeb4e3..c7dc94ac 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -38,6 +38,8 @@ if config_env() == :prod do config :music_library, MusicLibrary.Repo, database: database_path, + # 16MB * pool_size = base memory usage + cache_size: -16000, pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5") # The secret key base is used to sign/encrypt cookies and other secrets.