전남대 BE_이재륜 3단계 - 입력값 유효성 검사 및 조회 메서드 트랜잭션 설정 추가#288
Open
LeeJaeRyun wants to merge 37 commits intonext-step:leejaeryunfrom
Open
전남대 BE_이재륜 3단계 - 입력값 유효성 검사 및 조회 메서드 트랜잭션 설정 추가#288LeeJaeRyun wants to merge 37 commits intonext-step:leejaeryunfrom
LeeJaeRyun wants to merge 37 commits intonext-step:leejaeryunfrom
Conversation
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.
변경 사항
깨달은 점 : 조회니까 롤백할 일도 없고, 트랜잭션 안 걸어도 되는 거 아닌가하고 생각해서 조회 메서드 2개에는 트랜잭션을 안걸어줬었는데 이에 대해 적용하라고 말씀해주셔서 찾아본 결과
@transactional(readOnly = true)를 통해 쓰기 금지 보장 + 불필요한 리소스 낭비 방지 + 의도를 명확히 하기 위함 임을 알게 되었습니다.