Could you help to optimize the below query to perform better? Can I reduce the cost?
SELECT this_.id AS id1_20_0_,
this_.version AS version2_20_0_,
this_.domain AS domain4_20_0_,
this_.createdate AS createda5_20_0_,
this_.lastmodifydate AS lastmodi6_20_0_,
this_.ownerid AS ownerid7_20_0_,
this_.timeperiod AS timeperi8_20_0_,
this_.type AS type9_20_0_,
this_.capturesource AS capture10_20_0_,
this_.value AS value11_20_0_,
this_.siteid AS siteid12_20_0_,
this_.lastmodifyuserid AS lastmod13_20_0_,
this_.classid AS classId3_20_0_
FROM dbo.pcwdepconstraints this_
WHERE this_.classid = 65
AND this_.ownerid = 200000000001
AND ( this_.capturesource IS NULL
OR this_.capturesource IN ( 1073741826, 1073741827, 0, 1, 2 ) )
I have recreated the ix2_pcwdepcons by below columns, but still there is no change in the execution plan and its cost.
( this_.id ,
this_.version ,
this_.domain ,
this_.createdate ,
this_.lastmodifydate,
this_.timeperiod ,
this_.type ,
this_.value ,
this_.siteid
this_.lastmodifyuserid )