From 684bf111c1c23c716f0bab72ff26312800131b97 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 15 Jun 2025 11:02:31 +0300 Subject: [PATCH] Use 64MB page size for dev and prod --- config/dev.exs | 2 +- config/runtime.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/dev.exs b/config/dev.exs index cead805f..27a8f169 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -3,7 +3,7 @@ import Config # Configure your database config :music_library, MusicLibrary.Repo, database: Path.expand("../data/music_library_dev.db", __DIR__), - cache_size: -8000, + cache_size: -64_000, pool_size: 10, stacktrace: true, show_sensitive_data_on_connection_error: true diff --git a/config/runtime.exs b/config/runtime.exs index c3fec180..dea198db 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -77,7 +77,7 @@ if config_env() == :prod do config :music_library, MusicLibrary.Repo, database: database_path, # 16MB * pool_size = base memory usage - cache_size: -32_000, + cache_size: -64_000, pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5") error_database_path =