Skip to content

refactor: 마이페이지 속도 개선 & 추천 스터디 범위 축소#117

Merged
canit0221 merged 2 commits intomainfrom
develop
Feb 5, 2026
Merged

refactor: 마이페이지 속도 개선 & 추천 스터디 범위 축소#117
canit0221 merged 2 commits intomainfrom
develop

Conversation

@utact
Copy link
Collaborator

@utact utact commented Feb 5, 2026

🚀 작업 배경

UserService.findById는 읽기 전용 모드(@Transactional(readOnly=true))로 실행됩니다.
여기서 동기화 로직을 호출하니 "마지막 갱신 시간 업데이트"가 DB에 반영되지 않고 무시되고 있었습니다.
이에 따라 1시간이 안 지났는데도 지난 줄 알고 매번 API를 호출해서 느려지고 있어 조치가 필요합니다.

핫픽스를 진행하는 김에 추천 스터디 범위 축소도 같이 진행해야 합니다.


🛠️ 주요 변경 사항

  • 동기화 메서드는 무조건 새로운 트랜잭션(REQUIRES_NEW)으로 실행하도록 강제하였습니다.
  • 티어 동기화를 위한 간격 조건을 1시간에서 12시간으로 증가시켰습니다.
  • 기존 추천 스터디 범위를 +-1로 축소하였습니다.

🔗 관련 이슈

@utact utact requested review from SoMin-Yoo, canit0221 and Copilot and removed request for Copilot February 5, 2026 15:08
@canit0221 canit0221 merged commit 382d05e into main Feb 5, 2026
9 checks passed
@utact utact self-assigned this Feb 8, 2026
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.

[TASK] 추천 스터디 알고리즘 변경

2 participants