From b32791b0c37e910798322b5ff5ccab6d48c48769 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Sat, 4 May 2019 02:16:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E8=A1=A8=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E7=BC=93=E8=A7=A3=E9=94=81=E8=A1=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/XXL-JOB官方文档.md | 1 + doc/db/tables_xxl_job.sql | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/XXL-JOB官方文档.md b/doc/XXL-JOB官方文档.md index 5d3e4682..f05dc8d6 100644 --- a/doc/XXL-JOB官方文档.md +++ b/doc/XXL-JOB官方文档.md @@ -1474,6 +1474,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段 - 4、调度日志优化:支持设置日志保留天数,过期日志天维度记录报表,并清理;调度报表汇总实时数据和报表; - 5、调度线程池参数调优; - 6、升级xxl-rpc至较新版本,并清理冗余POM; +- 7、注册表索引优化,缓解锁表问题; ### TODO LIST diff --git a/doc/db/tables_xxl_job.sql b/doc/db/tables_xxl_job.sql index 42691410..8b57760b 100644 --- a/doc/db/tables_xxl_job.sql +++ b/doc/db/tables_xxl_job.sql @@ -204,13 +204,14 @@ CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_LOGGLUE` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -CREATE TABLE XXL_JOB_QRTZ_TRIGGER_REGISTRY ( +CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_REGISTRY` ( `id` int(11) NOT NULL AUTO_INCREMENT, `registry_group` varchar(255) NOT NULL, `registry_key` varchar(255) NOT NULL, `registry_value` varchar(255) NOT NULL, `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_GROUP` (