hiSandog opened a new pull request, #13172:
URL: https://github.com/apache/dolphinscheduler/pull/13172
When I open the home page, I always feel slow, I wonder why a paging query
project interface is so slow.
```
select
<include refid="baseSqlV2">
<property name="alias" value="p"/>
</include>
,
u.user_name as user_name,
(SELECT COUNT(*) FROM t_ds_process_definition AS def WHERE
def.project_code = p.code) AS def_count,
(SELECT COUNT(*) FROM t_ds_process_definition_log def,
t_ds_process_instance inst WHERE def.code =
inst.process_definition_code and def.version =
inst.process_definition_version AND def.project_code = p.code
AND inst.state=1 ) as inst_running_count
```
This sql should produce many sub-queries that affect the efficiency of the
sql execution.
So I did some optimization
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]