mirror of
https://github.com/201206030/novel-plus.git
synced 2025-06-24 04:46:37 +00:00
引入rabbitmq流量削峰,累积点击量后统一更新
This commit is contained in:
@ -7,6 +7,18 @@ spring:
|
||||
include: alipay
|
||||
|
||||
|
||||
rabbitmq:
|
||||
enable: 0
|
||||
host: 127.0.0.1
|
||||
username: guest
|
||||
password: guest
|
||||
virtual-host: /novel-plus
|
||||
template:
|
||||
# 缺省的交换机名称,此处配置后,发送消息如果不指定交换机就会使用这个
|
||||
exchange: novel.exchange
|
||||
publisher-confirms: false
|
||||
|
||||
|
||||
elasticsearch:
|
||||
#是否开启搜索引擎,1:开启,0:不开启
|
||||
enable: 0
|
||||
|
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user