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

유저 검색 service에 QueryDSL을 적용해볼까요? #227

Closed
esperar opened this issue Jul 4, 2023 · 0 comments · Fixed by #228
Closed

유저 검색 service에 QueryDSL을 적용해볼까요? #227

esperar opened this issue Jul 4, 2023 · 0 comments · Fixed by #228
Assignees

Comments

@esperar
Copy link
Contributor

esperar commented Jul 4, 2023

저희 유저 검색 서비스가 findAll한 학생 리스트에 asSequence()를 사용해서 학생 정보를 거르고있습니다.

일단 소량의 데이터에서 asSequence를 사용해서 연산을 하면 지연 계산의 오버헤드가 발생해서 오히려 성능 저하가 될 수 있습니다.

일단 filter를 통해서 내부 연산을 이르키는 것 보단 QueryDSL BooleanExpression or Where 조건절을 사용해서 리팩터링 하는 것이 좋아보입니다.

image
@esperar esperar self-assigned this Jul 4, 2023
@esperar esperar linked a pull request Jul 6, 2023 that will close this issue
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