두 개의 엔티티 그룹이 있습니다. 레스토랑 및 사용자. 레스토랑은 사용자가 평가할 수 있습니다 (1-5). 그리고 각 사용자의 평가는 검색 가능해야합니다.등급 시스템 데이터베이스 구조
음식점 (ID, 이름, ....., total_number_of_votes, total_voting_points) 사용자 (ID, 이름 ...)
평가 (ID, restaurant_id 266 RATING_VALUE)
매번 계산할 필요가 없도록 평균값을 저장해야합니까? 어느 테이블이 avg_rating, total_no_of_votes, total_voting_points를 저장할 최적의 장소입니까?