From 96c7a8c7e919984fa9051d0e94bd0f8c1aa366aa Mon Sep 17 00:00:00 2001 From: wangxj3 <857234426@qq.com> Date: Wed, 9 Dec 2020 11:29:38 +0800 Subject: [PATCH] Update TaskInstanceMapper.xml optimize page of [TaskInstance] load data slow --- .../apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml index 0d0d5ea018..71bd251a4a 100644 --- a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml +++ b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml @@ -120,8 +120,8 @@ , process.name as process_instance_name from t_ds_task_instance instance - join t_ds_process_definition define on instance.process_definition_id = define.id - join t_ds_process_instance process on process.id=instance.process_instance_id + left join t_ds_process_definition define on instance.process_definition_id = define.id + left join t_ds_process_instance process on process.id=instance.process_instance_id where define.project_id = #{projectId} and instance.start_time > #{startTime} and instance.start_time #{endTime}