Description
The SQLite connection pool in src/metadata/sqlite.rs currently hardcodes max_connections(5). This should be configurable, either per-bucket or as a global setting.
Location
src/metadata/sqlite.rs:52
Details
The current code always creates a pool with 5 max connections:
let pool = SqlitePoolOptions::new()
.max_connections(5)
.connect_with(options)
.await
This should be exposed as a configuration option (e.g., in config.toml) so operators can tune it based on their workload and deployment.
Acceptance Criteria
Description
The SQLite connection pool in
src/metadata/sqlite.rscurrently hardcodesmax_connections(5). This should be configurable, either per-bucket or as a global setting.Location
src/metadata/sqlite.rs:52Details
The current code always creates a pool with 5 max connections:
This should be exposed as a configuration option (e.g., in
config.toml) so operators can tune it based on their workload and deployment.Acceptance Criteria
max_connectionsfield to the config struct (with a sensible default of 5)SqlitePoolOptions::new().max_connections(...)