原查询:
select top 999999 T1.* from T_XianLuInfo T1
where 
T1.Xli_YouKeLeiXing = 2 
and T1.Xli_LanguageType =1
and (cast(T1.Xli_XianLuType as bigint) in (select ID from T_XianluMenu where left(Pty_path,3)='0_2')
or T1.ID in (select Xll_XianLuID from T_XianLuList T2 where CONVERT(varchar(10),cast(T2.Xll_CFDate as datetime) ,120)> CONVERT(varchar(10),cast(GETDATE() as datetime) ,120) and T2.Xll_XianLuID=T1.ID))
order by T1.Xli_CreateDate desc执行时查询速度很慢,求优化,求解~谢谢!