issues
search
roon-replica
/
toy-blog-BE
토이 프로젝트 / 블로그 기능 / 백엔드만 / 구현,협업,배포 연습
0
stars
0
forks
source link
#6 조회수 관리 기능
#39
Closed
roon-replica
closed
1 year ago
roon-replica
commented
1 year ago
구현 내용
post get할 때 조회수 1씩 증가하도록 구현.
간단한 오류 해결
@Transactional에서 readOnly 옵션 이슈.
get 요청이라고해서 readOnly 옵션을 주게되면 post.increaseViewCount()가 DB에 적용되지 않음!
추가 고민해 볼 부분
캐시를 적용하게 되면 조회수 증가는 어떻게 처리할것인지?
구현 내용
간단한 오류 해결
추가 고민해 볼 부분