Use 64MB page size for dev and prod

This commit is contained in:
Claudio Ortolina
2025-06-15 11:02:31 +03:00
parent 1910265aea
commit 684bf111c1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import Config
# Configure your database # Configure your database
config :music_library, MusicLibrary.Repo, config :music_library, MusicLibrary.Repo,
database: Path.expand("../data/music_library_dev.db", __DIR__), database: Path.expand("../data/music_library_dev.db", __DIR__),
cache_size: -8000, cache_size: -64_000,
pool_size: 10, pool_size: 10,
stacktrace: true, stacktrace: true,
show_sensitive_data_on_connection_error: true show_sensitive_data_on_connection_error: true
+1 -1
View File
@@ -77,7 +77,7 @@ if config_env() == :prod do
config :music_library, MusicLibrary.Repo, config :music_library, MusicLibrary.Repo,
database: database_path, database: database_path,
# 16MB * pool_size = base memory usage # 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") pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5")
error_database_path = error_database_path =