引入rabbitmq流量削峰,累积点击量后统一更新

This commit is contained in:
xiongxiaoyang
2020-05-25 21:06:51 +08:00
parent 5dbddbdd96
commit e4dd5bcb71
10 changed files with 197 additions and 7 deletions

View File

@ -35,7 +35,7 @@
</select>
<update id="addVisitCount" >
update book set visit_count = visit_count + 1 , update_time = #{date}
update book set visit_count = visit_count + 1
where id = #{bookId}
</update>