Hi friends,
the following is the culprit for poor performance. cpu spike always high(avg-97-100)
-cpu busy count-74687537
SELECT top(1)@location=isnull(location,'No Location Found.'),@lat=Lat,@lon=lonFROM [IndiaLocation].[dbo].[IndiaLocation] WITH(INDEX(idxGeom))
WHERE geom.STDistance(@g) is not null and geom.STDistance(@g) < 2000
ORDER BY geom.STDistance(@g);
any idea how to stable it and how degrade the cpu resources...