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

MemberAuthProvider OneToOne 매핑 관계의 Lazy Loading 비정상 동작 확인 #132

Open
2 tasks
Dokyeongyun opened this issue Sep 29, 2022 · 0 comments
Assignees
Labels
Troubleshooting About troubleshooting

Comments

@Dokyeongyun
Copy link
Contributor

Problem or enhancements and It's Background

  • Member Entity와 AuthProvider Entity는 @OnetoOne 관계로 매핑되어있으며, fetchType은 LAZY로 설정되어 있다.
  • 그러나 Member Entity를 조회할 경우, 항상 AuthProvider Entity가 함께 조회된다.
  • Member Entity는 Application 전체에서 매우 잦은 빈도로 조회되므로 해당 문제를 파악하고 해결하도록 하자.

Solutions

  • MemberAuthProvider 관계에서 Lazy Loading이 정상적으로 이루어지도록 수정

TODO Tasks

  • 원인 파악
  • 수정
@Dokyeongyun Dokyeongyun added the Troubleshooting About troubleshooting label Sep 29, 2022
@Dokyeongyun Dokyeongyun self-assigned this Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Troubleshooting About troubleshooting
Projects
None yet
Development

No branches or pull requests

1 participant