From b3af5be00d9d13f9145659af9240e6dc20540a71 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Thu, 2 Apr 2026 10:40:03 +0100 Subject: [PATCH] Reduce repo cache size As assets are self-contained in their own table, and shielded with heavy CDN + in-memory caching, there's no point in keeping a very large cache. --- config/runtime.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 317db4c4..556831df 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -100,8 +100,8 @@ if config_env() == :prod do config :music_library, MusicLibrary.Repo, database: database_path, - # 128MB * pool_size = base memory usage - cache_size: -128_000, + # 64MB * pool_size = base memory usage + cache_size: -64_000, pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5"), show_sensitive_data_on_connection_error: false