Skip to content

Hotfix/mateboard : 댓글 좋아요 정보 추가 구현#182

Merged
sete3683 merged 13 commits into
developfrom
hotfix/Mateboard
Apr 15, 2025
Merged

Hotfix/mateboard : 댓글 좋아요 정보 추가 구현#182
sete3683 merged 13 commits into
developfrom
hotfix/Mateboard

Conversation

@zelly-log
Copy link
Copy Markdown
Collaborator

Hotfix/mateboard : 댓글 좋아요 정보 추가 구현


ex) Feature/B-01 #1 : pull request template 작성
(확인 후 지워 주세요)

🔘 Part

  • BE
  • Infra

🔎 PR Type

  • 새로운 기능 추가
  • 버그 수정
  • 주요 코드 리팩토링(성능 최적화 등)
  • 간단 코드 리팩토링(주석, 코드 컨벤션, 오타 수정 등)
  • 기타 (기타 사항 기입)

🔧 작업 내용 상세 작성

  • [레포 이름 #이슈번호](이슈 주소)

  • 작업 내용을 상세하게 작성해 주세요!

✔️ PR Checklist

  • 커밋 메세지를 컨벤션에 맞게 잘 적용 하였나요?

  • 테스트 코드 작성 / 단위 테스트 or 통합 테스트 진행 하셨나요?

@zelly-log zelly-log added the enhancement 신규 기능 구현 / 기능 향상 label Apr 14, 2025
@zelly-log zelly-log requested a review from sete3683 April 14, 2025 19:04
@zelly-log zelly-log self-assigned this Apr 14, 2025
@@ -1,6 +1,7 @@
package com.frend.planit.domain.mateboard.application.repository;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋습니다. findByMateId 메서드 추가는 Mate 게시글에 대한 지원자 목록을 효율적으로 가져오는 데 도움이 될 것 같습니다. 필요에 따라 추가적인 메서드 (예: 지원자 상태별 조회)도 고려해 볼 수 있습니다.

@@ -1,6 +1,7 @@
package com.frend.planit.domain.mateboard.post.repository;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

findMateWithDetails 메서드 추가는 게시글 상세 정보를 한 번에 가져오는 데 유용해 보입니다. 데이터베이스 쿼리 성능 최적화를 위해 필요한 조인을 신중하게 선택했는지 확인해야 합니다.

@@ -1,15 +1,17 @@
package com.frend.planit.domain.mateboard.post.repository;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드가 상당히 수정되었습니다. findMateWithDetails 메서드가 추가되었고, 기존의 쿼리가 더욱 효율적이고 명확하게 개선된 것으로 보입니다. 특히 댓글 수와 좋아요 수를 Expressions.numberTemplate을 사용하여 가져오는 부분이 인상적입니다. 하지만, 쿼리의 복잡성이 높아졌으므로 성능 테스트를 통해 실제 성능 향상을 확인하는 것이 중요합니다. 또한, 쿼리의 각 부분에 대한 주석을 추가하여 가독성을 높이는 것을 권장합니다. 예를 들어, 각 JPAExpressions.select() 부분에 어떤 데이터를 가져오는지 명확하게 설명하는 주석을 추가하는 것이 좋습니다.

@sete3683 sete3683 merged commit c6faa82 into develop Apr 15, 2025
1 check passed
@hellonaeunkim hellonaeunkim deleted the hotfix/Mateboard branch April 15, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 신규 기능 구현 / 기능 향상

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants