You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
처음 서버 실행시, redis 초기화해서,
key 를 totalLikes:videoId로 사용하면서 value를 관리해줘야할 것 같습니다.
음 생각해보니 이렇게 하면 사실상 column추가하는것보다 logic도 복잡해지고 성능적인 면도 크게 차이나지는 않을 것 같습니다.
video column에 totalLikes를 추가하여관리한다 + batch job으로 일정 기간마다 count를 통해서 갱신하여 reliability를 늘린다.
그냥 SQL query를 그대로 사용하되, 나중에 성능적인 면을 고려해서 cache(redis)를 차라리 넣어보는걸 고려한다
우선은 1번으로 진행하고 있습니당.
The text was updated successfully, but these errors were encountered: