fix(测试跟踪): 公共用例库页面查询性能优化-一般要5到10s才查询出来用例
--bug=1009940 --user=王孝刚 【公共用例库】-公共用例库页面查询性能优化-一般要5到10s才查询出来用例 https://www.tapd.cn/55049933/s/1097712
This commit is contained in:
parent
a306fcfaf5
commit
07a19cc63a
|
@ -258,13 +258,13 @@
|
|||
left join (select id,workspace_id,NAME from project where workspace_id =#{request.workspaceId})
|
||||
project on test_case.project_id = project.id
|
||||
left join project_version on project.id = project_version.project_id and project_version.id =
|
||||
test_case.version_id
|
||||
test_case.version_id where test_case.case_public = true
|
||||
) test_case right join
|
||||
(select
|
||||
max(test_case.update_time) update_time , ref_id
|
||||
from test_case
|
||||
left join (select id,workspace_id,NAME from project where workspace_id =#{request.workspaceId})
|
||||
project on test_case.project_id = project.id group by test_case.ref_id
|
||||
project on test_case.project_id = project.id where test_case.case_public = true group by test_case.ref_id
|
||||
) tmp on test_case.update_time = tmp.update_time and test_case.ref_id = tmp.ref_id
|
||||
<where>
|
||||
<include refid="filters"/>
|
||||
|
|
Loading…
Reference in New Issue