Skip to content

Commit

Permalink
fix: 修复系统日志表索引缺失导致查询耗时较长的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Sep 8, 2023
1 parent 11ea072 commit ac43833
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,6 @@ CREATE TABLE IF NOT EXISTS `sys_log` (
`create_user` bigint(20) UNSIGNED DEFAULT NULL COMMENT '创建人',
`create_time` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_create_user`(`create_user`) USING BTREE
INDEX `idx_client_ip`(`client_ip`) USING BTREE,
INDEX `idx_create_time`(`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统日志表';

0 comments on commit ac43833

Please sign in to comment.