feat: shard group messages by month

This commit is contained in:
richjohnrambo
2026-09-15 23:53:51 +08:00
parent b7c2536527
commit 139681fadb
25 changed files with 1718 additions and 247 deletions
+3
View File
@@ -1,3 +1,6 @@
-- Legacy single-table baseline. New deployments must also run
-- IM-群消息按月分表SQL.sql; this table remains only for migration-time dual reads.
CREATE TABLE IF NOT EXISTS im_group_messages (
id BIGINT NOT NULL AUTO_INCREMENT,
topic VARCHAR(64) NOT NULL COMMENT '群 Topic,如 grp_xxx',