Advertisement

03.09.2008 at 12:45PM PDT, ID: 23226970
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Asynchronous database calls

Asked by Silas2 in .NET Framework 2.x, C# Programming Language, SQL Server 2005

Tags: , ,

This question does span a couple of different technologies although I think it really is.Net framework, what I'm trying to do is get the most out of my thread pool from my ISP.  When I run a stress test against an application (it is in asp.net) by making 50 requests each of which contains 50 select and 50 insert commands against ADO.Net/SQL Server.
When I try with asynchronous delegate invocation (BeginExecuteReader,BeginExecuteNonQuery) and without (ExecuteReader,ExecuteNonQuery), I was expecting a big performance improvement with the asynchronous calls however, I get the opposite and the synchronous calls are much (X 2) faster, although this difference does flatten out if I increase the load.
My assumption was that when I execute " Begin..." that thread of execution would return to my thread pool and so be ready to service another request, and the ADO.Net calls, running on a different box, or certainly in a different thread pool, would be beavering away. I guess from my results that that is not what is happening, but probably the thread making " Begin..." call just goes to sleep.
Is there a way of somehow keeping all my threads working?  (I tried a thread pool wrapper but I'm hampered by having to run in medium trust and it didn't have enough permissions)Start Free Trial
[+][-]03.09.2008 at 12:56PM PDT, ID: 21082468

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.x, C# Programming Language, SQL Server 2005
Tags: Microsoft, .Net, 2.0
Sign Up Now!
Solution Provided By: ZachSmith
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.09.2008 at 12:56PM PDT, ID: 21082469

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.09.2008 at 01:33PM PDT, ID: 21082605

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.09.2008 at 01:35PM PDT, ID: 21082616

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.09.2008 at 07:32PM PDT, ID: 21083784

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.10.2008 at 09:03AM PDT, ID: 21087583

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.10.2008 at 11:56AM PDT, ID: 21089148

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628