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

Feat(#36): 회원 조회 API #53

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

kimyu0218
Copy link
Collaborator

작업 개요

회원 조회 API 작성

작업 사항

  • 회원 정보를 조회하기 위한 컨트롤러, 서비스, dto 작성

고민한 점들(필수 X)

  • Feat(#37): 회원 이름 이메일 저장 #52 에 이어서 작업해서 base 브랜치를 feature 브랜치로 연결해놓았습니다.
  • 이전에 @Transactional 관련 포스팅을 추천해주셨는데 @Transactional(readOnly=true)를 삭제하는 것이 좋을까요? 읽기 쿼리 한 번 날리는 거라 트랜잭션을 걸지 않아도 될 것 같습니다.

Copy link

github-actions bot commented Feb 3, 2025

Test Results

38 tests   37 ✅  2s ⏱️
23 suites   1 💤
23 files     0 ❌

Results for commit b2819d6.

♻️ This comment has been updated with latest results.

@kimyu0218 kimyu0218 linked an issue Feb 3, 2025 that may be closed by this pull request
1 task
Copy link
Member

@NaMinhyeok NaMinhyeok left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 !

트랜잭션 관련해서 해당 포스팅에서는 DB 관점에서는 안쓰는게 좋다라고는 하는데 Spring 관점에서는 쓰는게 좋다고 하나봅니다.

spring 진영에서는 @Transactional(readOnly=true)가 dirtyChecking 모드를 Manual모드로 바꿔 줄 수 있기 때문에 application 성능 개선에 도움이 될 수 있다고 설명합니다.

일단 사용해두는 것도 좋을 것 같아요 !!

Copy link
Member

@pythonstrup pythonstrup left a comment

Choose a reason for hiding this comment

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

  • 저는 @Transactional(readOnly = true)로 두는 거 좋다고 생각합니다.
  • DB Replication을 하게 되면 readOnly를 기준으로 라우팅 설정을 진행하는 게 편해서요.

@kimyu0218 kimyu0218 changed the base branch from feature/#37-회원-이름-이메일-저장 to main February 4, 2025 12:43
@kimyu0218 kimyu0218 force-pushed the feature/#36-회원-조회-api branch from f426497 to b2819d6 Compare February 4, 2025 12:45
@kimyu0218 kimyu0218 merged commit 5baf2a3 into main Feb 4, 2025
2 checks passed
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 this pull request may close these issues.

feat: 회원 조회 API
3 participants