视频表
create table video (
video_id bigint not null,
)
用户给视频点赞表
create table video_favor (
user_id bigint not null ,
video_id bigint not null ,
)
如果要统计video的点赞量
应该直接计算select count(*) from video_favor where video_id=?
还是单独给video建一个字段favor_count,每次点赞都主动update+1