M
mjweiner
I have a web applicaiton that functions as a search engine that also
serves custom information to users based on their past searches and
clicks. I have several stored procedures that produce this custom
information that I have spent a lot of time optimizing.
When I run the sprocs through query analyzer, they run in 1-2 seconds.
However, on my application (which receives relatively little traffic -
10-20 visitors per hour), I receive several timeout errors daily on
the site. I have the timeout set at 30 seconds. When I run the exact
same query, using the exact same parameters through query analyzer, it
runs perfectly in 1-2 seconds.
I have reviewed my code and think that my connecitons are opened and
closed appropriately. Does anyone have any suggestions on evaluating
this problem further to determine the cause of the timeout? Any
thoughts on what may cause an sproc to run fine through query analyzer,
but slow to a grinding halt once it's deployed?
I'm running an ASP.NET 1.1 applicaiton, on a shared hosting platform
with a shared SQL server database.
thanks
Matt Weiner
serves custom information to users based on their past searches and
clicks. I have several stored procedures that produce this custom
information that I have spent a lot of time optimizing.
When I run the sprocs through query analyzer, they run in 1-2 seconds.
However, on my application (which receives relatively little traffic -
10-20 visitors per hour), I receive several timeout errors daily on
the site. I have the timeout set at 30 seconds. When I run the exact
same query, using the exact same parameters through query analyzer, it
runs perfectly in 1-2 seconds.
I have reviewed my code and think that my connecitons are opened and
closed appropriately. Does anyone have any suggestions on evaluating
this problem further to determine the cause of the timeout? Any
thoughts on what may cause an sproc to run fine through query analyzer,
but slow to a grinding halt once it's deployed?
I'm running an ASP.NET 1.1 applicaiton, on a shared hosting platform
with a shared SQL server database.
thanks
Matt Weiner