Skip to content

Commit

Permalink
添加索引,任务日志数据量大时提高删除任务的速度
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxi committed May 24, 2023
1 parent 6effc8b commit 4185e62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/db/tables_xxl_job.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ CREATE TABLE `xxl_job_log` (
`alarm_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败',
PRIMARY KEY (`id`),
KEY `I_trigger_time` (`trigger_time`),
KEY `I_handle_code` (`handle_code`)
KEY `I_handle_code` (`handle_code`),
KEY `I_job_id` (`job_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `xxl_job_log_report` (
Expand Down

0 comments on commit 4185e62

Please sign in to comment.