Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

유저 API N+1 쿼리 개선 #27

Merged
merged 2 commits into from
Jul 6, 2024
Merged

유저 API N+1 쿼리 개선 #27

merged 2 commits into from
Jul 6, 2024

Conversation

minkyu97
Copy link
Collaborator

@minkyu97 minkyu97 commented Jul 6, 2024

  1. Session 생성 시 간헐적으로 DB 와 통신에 실패하는 케이스를 대응하기 위해 retry 로직 추가
  2. 각 retry 마다 비동기적으로 대기하는 로직을 위해 get_db_session 을 async generator 로 변경
  3. UserRepository 의 get_users 에서 N+1 쿼리가 발생하는 문제를 개선

@minkyu97 minkyu97 self-assigned this Jul 6, 2024
@minkyu97 minkyu97 merged commit e5b1e05 into develop Jul 6, 2024
2 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.

1 participant