Hotfix/mateboard : 댓글 좋아요 정보 추가 구현#182
Merged
Merged
Conversation
| @@ -1,6 +1,7 @@ | |||
| package com.frend.planit.domain.mateboard.application.repository; | |||
There was a problem hiding this comment.
좋습니다. findByMateId 메서드 추가는 Mate 게시글에 대한 지원자 목록을 효율적으로 가져오는 데 도움이 될 것 같습니다. 필요에 따라 추가적인 메서드 (예: 지원자 상태별 조회)도 고려해 볼 수 있습니다.
| @@ -1,6 +1,7 @@ | |||
| package com.frend.planit.domain.mateboard.post.repository; | |||
There was a problem hiding this comment.
findMateWithDetails 메서드 추가는 게시글 상세 정보를 한 번에 가져오는 데 유용해 보입니다. 데이터베이스 쿼리 성능 최적화를 위해 필요한 조인을 신중하게 선택했는지 확인해야 합니다.
| @@ -1,15 +1,17 @@ | |||
| package com.frend.planit.domain.mateboard.post.repository; | |||
There was a problem hiding this comment.
코드가 상당히 수정되었습니다. findMateWithDetails 메서드가 추가되었고, 기존의 쿼리가 더욱 효율적이고 명확하게 개선된 것으로 보입니다. 특히 댓글 수와 좋아요 수를 Expressions.numberTemplate을 사용하여 가져오는 부분이 인상적입니다. 하지만, 쿼리의 복잡성이 높아졌으므로 성능 테스트를 통해 실제 성능 향상을 확인하는 것이 중요합니다. 또한, 쿼리의 각 부분에 대한 주석을 추가하여 가독성을 높이는 것을 권장합니다. 예를 들어, 각 JPAExpressions.select() 부분에 어떤 데이터를 가져오는지 명확하게 설명하는 주석을 추가하는 것이 좋습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hotfix/mateboard : 댓글 좋아요 정보 추가 구현
ex) Feature/B-01 #1 : pull request template 작성
(확인 후 지워 주세요)
🔘 Part
🔎 PR Type
🔧 작업 내용 상세 작성
[레포 이름 #이슈번호](이슈 주소)
작업 내용을 상세하게 작성해 주세요!
✔️ PR Checklist
커밋 메세지를 컨벤션에 맞게 잘 적용 하였나요?
테스트 코드 작성 / 단위 테스트 or 통합 테스트 진행 하셨나요?