Inject db session to custom connector template registry cache query#7387
Inject db session to custom connector template registry cache query#7387
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Greptile OverviewGreptile SummaryThis PR optimizes database session management by allowing reuse of existing FastAPI sessions when checking cache staleness in the The changes thread an optional
The implementation is clean, well-documented, and includes comprehensive test coverage. The decorator properly strips the Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 10ca3fe |
Ticket []
Description Of Changes
With autoclose_db_session is too expensive to be running every endpoint call. This pr makes db an optional param for injection and recycles db sessions running on fastapi to avoid the need of creating a new one.
Code Changes
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works