You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that in the current implementation of the UserSQLAlchemyRepo, each repository method creates a new session using the session_factory() context manager. It can lead to potential performance issues when multiple repository methods are called sequentially within the same service layer function.
I noticed that in the current implementation of the UserSQLAlchemyRepo, each repository method creates a new session using the session_factory() context manager. It can lead to potential performance issues when multiple repository methods are called sequentially within the same service layer function.
fastapi-boilerplate/core/db/session.py
Lines 51 to 76 in ca3bb3f
fastapi-boilerplate/app/user/adapter/output/persistence/sqlalchemy/user.py
Lines 29 to 39 in ca3bb3f
The text was updated successfully, but these errors were encountered: