Attempt at shrinking memory usage

This commit is contained in:
Claudio Ortolina
2024-11-28 17:22:56 +00:00
parent cb0e06d603
commit ffcbeb49b4
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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.