Skip to content

G2P-5619 Add database connection pooling to master-data API - #17

Merged
shibu-narayanan merged 1 commit into
OpenG2P:1.1from
tahzeer:G2P-5619-use-commons-session-maker
Sep 4, 2026
Merged

G2P-5619 Add database connection pooling to master-data API#17
shibu-narayanan merged 1 commit into
OpenG2P:1.1from
tahzeer:G2P-5619-use-commons-session-maker

Conversation

@tahzeer

@tahzeer tahzeer commented Sep 3, 2026

Copy link
Copy Markdown

G2P-5619

important note

  • this pr introduces the usage of new get_async_session_maker from fastapi-commons
  • the commit hash for fastapi-common where this addition was done is 17057b7ec69f02bc982813886749d61a4f94d620 in openg2p-fastapi-common:develop
  • mds:1.1 currently uses fastapi-common:1.2 in most places (docker and test workflow)

this pr should only be merged when the said commit 17057b is merged into the referenced fastapi-common branch or tag used in this repo or else apis will fail to create a session

… API

- Introduced SQLAlchemy connection pool settings in values.yaml and .env.example.
- Updated G2PAttributeService and G2PGeoService to utilize the new async session maker for database interactions.
- Removed deprecated engine.py file as its functionality is now handled by the updated session management approach in fastapi-commons
@tahzeer
tahzeer marked this pull request as draft September 3, 2026 11:31
@tahzeer
tahzeer marked this pull request as ready for review September 4, 2026 04:12
@shibu-narayanan
shibu-narayanan merged commit d41779f into OpenG2P:1.1 Sep 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants