Commit afec54c8 by Future

查询历史消息添加时间限制

parent deae5440
......@@ -83,7 +83,9 @@
AND im_message.id <![CDATA[ < ]]> #{param.msgIdEnd}
</if>
ORDER BY `im_message`.`create_time` DESC limit 1000
and im_message.create_time > DATE_SUB(CURDATE(), INTERVAL 7 DAY)
ORDER BY `im_message`.`create_time` DESC
</select>
......
-- 在feature-cluster 2021年12月22日之后,需要执行的的sql增量脚本
-- 在feature-cluster 2021年12月22日之后,需要执行的的sql增量脚本
......@@ -208,3 +208,5 @@ ALTER TABLE `im_inbox`
ALTER TABLE `im_message` ADD INDEX `idx_sender`(`sender`);
ALTER TABLE `im_message` ADD INDEX `idx_create_time`(`create_time`);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment