[Hotfix] 메이트 게시글 group by 추가#175
Merged
Merged
Conversation
| .from(image) | ||
| // .where(image.holderType.eq(HolderType.MATEBOARD) | ||
| // .and(image.holderId.eq(mate.id))) | ||
| .orderBy(image.id.asc()) |
There was a problem hiding this comment.
103-104행의 코드가 삭제되었습니다. 이 코드는 Mateboard와 관련된 이미지를 조회하는 부분으로 보이는데, 삭제 이유가 명확하지 않습니다. 삭제 전후의 기능 변경 사항을 확인하고, 삭제가 적절한지, 혹은 다른 곳으로 이동되었는지 검토해야 합니다. 만약 더 이상 필요하지 않다면 삭제 이유를 주석으로 명확히 남겨주세요. 단순히 코드 제거만으로는 의도를 파악하기 어렵습니다.
| .leftJoin(matePostLike).on(matePostLike.matePost.eq(mate)) | ||
| .where(builder) | ||
| .groupBy(mate.id) | ||
| .orderBy(mate.createdAt.desc()) |
There was a problem hiding this comment.
119행에 .groupBy(mate.id)가 추가되었습니다. 이는 Mateboard 게시글 조회 시 중복된 데이터를 제거하기 위한 것으로 추정됩니다. 하지만 어떤 쿼리의 일부인지, 그리고 이로 인해 발생할 수 있는 성능 저하나 예상치 못한 결과는 없는지 확인해야 합니다. 주변 코드와의 조화를 고려하여, 더 효율적인 방법이 있는지도 검토해 보는 것이 좋겠습니다. 어떤 쿼리의 일부인지 명시적으로 주석을 달아주세요.
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] 메이트 게시글 group by 추가
🔘 Part
🔎 PR Type
🔧 작업 내용 상세 작성
[레포 이름 #이슈번호](이슈 주소)
작업 내용을 상세하게 작성해 주세요!
✔️ PR Checklist
커밋 메세지를 컨벤션에 맞게 잘 적용 하였나요?
테스트 코드 작성 / 단위 테스트 or 통합 테스트 진행 하셨나요?