potpie-ai / potpie

AI agents for your codebase
https://potpie.ai
Apache License 2.0
227 stars 13 forks source link

Migrate Database Interactions to Async Using `asyncpg` #147

Open vineetshar opened 1 week ago

vineetshar commented 1 week ago

Description: To improve the performance and responsiveness of our APIs and services, we should transition from synchronous database interactions to asynchronous ones. By adopting asyncpg as our database interface, we align with the goal of providing truly asynchronous interfaces and runtime for all APIs and services.

Proposed Solution:

Tasks:

Acceptance Criteria:

sarfarazsiddiquii commented 1 day ago

Hi @vineetshar, can i work on this issue? can you please assign me?

vineetshar commented 1 day ago

Yes @sarfarazsiddiquii this still needs to be done, sure you can pick it up. Let us know the plan of action here before you start implementing.

sarfarazsiddiquii commented 1 day ago

Hey @vineetshar sure! I'll replace the current synchronous SQLAlchemy queries with asynchronous queries using asyncpg in database.py. Then, I will update all the database interactions (mainly in the modules directory) to use this new async approach.