We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
业务场景 & 需求分析 目前浏览、点赞等操作,将直接修改数据库的统计数据,如:一条帖子被浏览,将修改帖子的浏览量和用户收到的浏览量。有较多用户同时在线时,将对数据库造成一定的压力
解决方案 其实这并不是很急着修改数据库的操作,可以先将数据在 redis 中存储,使用定时任务刷新每日浏览量,并更新到数据库中。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
业务场景 & 需求分析
目前浏览、点赞等操作,将直接修改数据库的统计数据,如:一条帖子被浏览,将修改帖子的浏览量和用户收到的浏览量。有较多用户同时在线时,将对数据库造成一定的压力
解决方案
其实这并不是很急着修改数据库的操作,可以先将数据在 redis 中存储,使用定时任务刷新每日浏览量,并更新到数据库中。
The text was updated successfully, but these errors were encountered: