When I use dbContext.spGetData(param1, param2)
, it goes long to get record from db. But the same stored procedure with same parameters doesn't take time in query window.
Why it takes too much time via linq?
No doubt linq is slow than query running in query window, but in my case it goes too long.
running stored proc in query window take 4 second.
calling the same stored proc in application takes above 3 minutes.