G
Guest
I'm hoping that there's something about the underpinnings of the .NET
framework that I don't understand. Something about the SqlHelper appliaction
block, though, kinda creeps me out.
All of its methods are static/shared.
To my understanding, this means that there is a single instance of a given
method. For the purposes of this discussion, lets say its ExecuteDataset.
Lets say that I have a procedure that takes 5 seconds to run and I call that
procedure through ExecuteDataset. The resultant dataset is used in a ASP.NET
Webform we'll call FormX.
It seems to me that if the data method is static, and there's only one
instance of it, there would be a contention issue for that method. So if I
have 20 people accessing that page, there would be 20 simultaneous calls to
that one method, which takes 5 seconds. There would be one person that has
to wait 100 seconds for a response.
So this doesn't sound like a "Best Practice." What am I missing?
framework that I don't understand. Something about the SqlHelper appliaction
block, though, kinda creeps me out.
All of its methods are static/shared.
To my understanding, this means that there is a single instance of a given
method. For the purposes of this discussion, lets say its ExecuteDataset.
Lets say that I have a procedure that takes 5 seconds to run and I call that
procedure through ExecuteDataset. The resultant dataset is used in a ASP.NET
Webform we'll call FormX.
It seems to me that if the data method is static, and there's only one
instance of it, there would be a contention issue for that method. So if I
have 20 people accessing that page, there would be 20 simultaneous calls to
that one method, which takes 5 seconds. There would be one person that has
to wait 100 seconds for a response.
So this doesn't sound like a "Best Practice." What am I missing?