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

템플릿 단건 조회/ 템플릿 삭제/ 태그 조회 성능 개선 #704

Merged
merged 23 commits into from
Sep 27, 2024

Conversation

kyum-q
Copy link
Contributor

@kyum-q kyum-q commented Sep 26, 2024

⚡️ 관련 이슈

close #673

📍주요 변경 사항

  • 템플릿 단건 조회 쿼리 성능 개선
  • 템플릿 삭제 쿼리 성능 개선
  • 태그 조회 쿼리 성능 개선

🎸기타

  • 나중에 디스커션 에 적힌 방법 2 를 고려해봐요 ~

@kyum-q kyum-q self-assigned this Sep 26, 2024
@kyum-q kyum-q added this to the 5차 스프린트🍗 milestone Sep 26, 2024
@kyum-q kyum-q added refactor 요구사항이 바뀌지 않은 변경사항 BE 백엔드 labels Sep 26, 2024
@kyum-q kyum-q requested review from HoeSeong123, jminkkk, zeus6768 and zangsu and removed request for HoeSeong123 and jminkkk September 26, 2024 16:09
Copy link
Contributor

@zeus6768 zeus6768 left a comment

Choose a reason for hiding this comment

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

간단한 코멘트 남겼습니다~~

한 번만 검토 후 승인하면 될 것 같아요!

backend/src/main/java/codezap/tag/service/TagService.java Outdated Show resolved Hide resolved
backend/src/main/java/codezap/tag/service/TagService.java Outdated Show resolved Hide resolved
Comment on lines 27 to 33
@Query("""
SELECT t.id
FROM Template t
WHERE t.member.id = :memberId
""")
List<Long> findAllIdsByMemberId(Long memberId);

Copy link
Contributor

Choose a reason for hiding this comment

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

이 메서드 사용되는 곳이 없는 것 같은걸요~!!

Copy link
Contributor

@HoeSeong123 HoeSeong123 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 켬미
켬미 없었으면 코드잽 어쩔 뻔했어~~~~~👍

@@ -29,6 +30,6 @@ public class Likes extends BaseTimeEntity {
@ManyToOne(optional = false)
Copy link
Contributor

Choose a reason for hiding this comment

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

단순 궁금증인데 전체적으로 지연 로딩을 적용하기로 했다고 했었는데 그거는 나중에 전체적으로 한번에 반영하는건가요??
아니면 담당한 사람이 확인??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

나도 의문... ㅎㅎㅎㅎㅎㅎㅎ

Copy link
Contributor

Choose a reason for hiding this comment

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

헉스... 다음 스프린트에 반드시 적용해야겠습니다

Comment on lines 48 to 49
return templateTagRepository.findAllTagsByTemplate(template)
.stream()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return templateTagRepository.findAllTagsByTemplate(template)
.stream()
return templateTagRepository.findAllTagsByTemplate(template);

zangsu
zangsu previously approved these changes Sep 26, 2024
Copy link
Contributor

@zangsu zangsu left a comment

Choose a reason for hiding this comment

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

켬미~~
성능 개선부터 문서화까지 고생 많으셨습니다~~

zeus6768
zeus6768 previously approved these changes Sep 27, 2024
Copy link
Contributor

@zeus6768 zeus6768 left a comment

Choose a reason for hiding this comment

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

최고에요~

@@ -29,6 +30,6 @@ public class Likes extends BaseTimeEntity {
@ManyToOne(optional = false)
Copy link
Contributor

Choose a reason for hiding this comment

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

헉스... 다음 스프린트에 반드시 적용해야겠습니다

@kyum-q kyum-q dismissed stale reviews from zeus6768 and zangsu via 1a6ffeb September 27, 2024 01:09
Copy link
Contributor

@jminkkk jminkkk left a comment

Choose a reason for hiding this comment

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

굿

jminkkk
jminkkk previously approved these changes Sep 27, 2024
zeus6768
zeus6768 previously approved these changes Sep 27, 2024
HoeSeong123
HoeSeong123 previously approved these changes Sep 27, 2024
@kyum-q kyum-q dismissed stale reviews from HoeSeong123, zeus6768, and jminkkk via 379e913 September 27, 2024 01:45
jminkkk
jminkkk previously approved these changes Sep 27, 2024
@jminkkk jminkkk merged commit 9ae042e into dev/be Sep 27, 2024
5 checks passed
@jminkkk jminkkk deleted the refactor/673-performance-template-find-delete branch September 27, 2024 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드 refactor 요구사항이 바뀌지 않은 변경사항
Projects
Status: Weekend Done
Development

Successfully merging this pull request may close these issues.

5 participants