Skip to content

Commit 34d0fad

Browse files
reduce the min number of db conn (#222)
1 parent d040913 commit 34d0fad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
## [Unreleased]
44

5-
## [5.0.2] - 2025-04-03
5+
## [5.0.2] - 2025-04-04
66

77
### Fixed
88

99
- fix root-path handling when setting in uvicorn command
10+
- reduce `db_min_conn_size` to `1` to avoid creating too many db connections when starting the application
1011

1112
## [5.0.1] - 2025-03-27
1213

stac_fastapi/pgstac/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class PostgresSettings(BaseSettings):
6969
postgres_port: int
7070
postgres_dbname: str
7171

72-
db_min_conn_size: int = 10
72+
db_min_conn_size: int = 1
7373
db_max_conn_size: int = 10
7474
db_max_queries: int = 50000
7575
db_max_inactive_conn_lifetime: float = 300

0 commit comments

Comments
 (0)