Close TD-20 sqlite pool alignment

This commit is contained in:
2026-06-12 14:07:28 +02:00
parent e2054c9c12
commit a73af6b44d
3 changed files with 42 additions and 2 deletions

View File

@@ -7,9 +7,11 @@ if config_env() == :prod do
File.mkdir_p!(Path.dirname(database_path))
# Keep prod on the same modest SQLite pool as dev so WAL + busy_timeout see
# the same concurrency behavior in both environments unless explicitly tuned.
config :bds, BDS.Repo,
database: database_path,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "1")
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5")
# Persist downloaded embedding model files alongside the database data dir.
config :bumblebee,