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

조회 쿼리 성능 최적화 #61

Closed
Tracked by #57 ...
LminWoo99 opened this issue May 25, 2024 · 1 comment · Fixed by #63
Closed
Tracked by #57 ...

조회 쿼리 성능 최적화 #61

LminWoo99 opened this issue May 25, 2024 · 1 comment · Fixed by #63

Comments

@LminWoo99
Copy link
Owner

No description provided.

@LminWoo99
Copy link
Owner Author

LminWoo99 commented May 25, 2024

sns 게시글 전체 조회 쿼리 최적화

  • 더미 데이터 갯수 : 10000개

1. 여러개 쿼리

  • 속도 : 25sec 317ms

여러개 쿼리

2. querydsl 이용한 조인

  • 속도 : 505ms

조인쿼리

결론

엔티티를 여러 개 복잡한 조인하는 경우와 각각 따로따로 쿼리를 날리는 경우 성능 테스트 결과
한번에 조인하는 쿼리가 약 50배 빠른 성능을 보여준다

LminWoo99 added a commit that referenced this issue May 25, 2024
[#61]refactor(sns) : Optimize query performance using QueryDSL
LminWoo99 added a commit that referenced this issue May 25, 2024
[#61]refactor(sns) : Optimize query performance using QueryDSL
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 a pull request may close this issue.

1 participant