Back to Python Challenges
Back
Fix Async DB Connection Leak in FastAPI
Hard
Problem
Connections were not closed properly because asyncpg.connect() was being called per request.
Code Editor
Solution
Fullscreen
Reset