refactor(report): 일간 리포트 생성 트랜잭션 단순화 및 동시성 안정화 #78
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.
📝 요약(Summary)
기존 일간 리포트 생성 로직에서는
AnswerEntry생성과 PendingDailyReport생성을 각각REQUIRES_NEW트랜잭션으로 분리하고 있었습니다.이로 인해,
이 존재했습니다.
변경 사항
AnswerEntry/ PendingDailyReport생성 로직에서REQUIRES_NEW전파 제거AnswerEntry,DailyReport에 DB 유니크 제약을 기반으로 중복 생성 방지🔗 Related Issue
💬 공유사항
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.