From eadb1bbda594b88219834425603a78b59f8b170c Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Sat, 8 Jun 2019 11:31:08 +0800 Subject: [PATCH] optimize --- doc/db/tables_xxl_job.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/db/tables_xxl_job.sql b/doc/db/tables_xxl_job.sql index 17e4f18a..85e8500f 100644 --- a/doc/db/tables_xxl_job.sql +++ b/doc/db/tables_xxl_job.sql @@ -68,7 +68,8 @@ CREATE TABLE `xxl_job_registry` ( `registry_value` varchar(255) NOT NULL, `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), - KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`) + KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`), + KEY `i_u` (`update_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `xxl_job_group` (