MarketPlane
table contains more than 60 million rows.
When I need the total number of plane from a particular date, I execute this query which takes more than 7 min. How can I reduce this time ?
SELECT COUNT(primaryKeyColumn)
FROM MarketPlan
WHERE LaunchDate > @date
I have implemented all things mentioned in your links even now I have implemented With(nolock)
which reduce response time is to 5 min.