Browse Source

Merge pull request #4186 from wangxj3/dev

[FIX-#4184][server-api] load TaskInstance slow
pull/3/MERGE
dailidong 4 years ago committed by GitHub
parent
commit
9798123f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml

4
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}
<if test="startTime != null">
and instance.start_time > #{startTime} and instance.start_time <![CDATA[ <=]]> #{endTime}

Loading…
Cancel
Save