database: modify join table in FindLayer to reduce cost by 3.5x
This commit is contained in:
parent
c61eebafdf
commit
18f2d7e672
@ -109,7 +109,7 @@ func init() {
|
||||
FROM Vulnerability_Affects_FeatureVersion vafv, Vulnerability v,
|
||||
Namespace vn, Vulnerability_FixedIn_Feature vfif
|
||||
WHERE vafv.featureversion_id = ANY($1::integer[])
|
||||
AND vafv.vulnerability_id = v.id
|
||||
AND vfif.vulnerability_id = v.id
|
||||
AND vafv.fixedin_id = vfif.id
|
||||
AND v.namespace_id = vn.id
|
||||
AND v.deleted_at IS NULL`
|
||||
|
Loading…
Reference in New Issue
Block a user