Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7278219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:50:42+00:00 2026-05-28T22:50:42+00:00

In the web app that I’m currently working on I’ve to make multiple calls

  • 0

In the web app that I’m currently working on I’ve to make multiple calls to database and combine the results at-last to show in the UI. Right now.. I’m doing the calls one by one and combining the results at last. Since the web app will be hosted in a multi-core machine(intel i5) I think I can use TPL to make parallel db calls. Is it a good idea? What are the things/pitfalls I want to consider when I’m doing parallel calls to db?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:50:42+00:00Added an answer on May 28, 2026 at 10:50 pm

    There are two things to remember here. Firstly you’re DB provided API may not be thread-safe, for example ADO.NET explicitly isn’t 100% thread-safe. Secondly by doing this you are moving your load from the clinet to the DB. In other words if your client creates 5 concurrent connections to the DB at once it’s going to have a larger impact on the DB’s load. The latency of an individual client to the user may be reduced but at the expense of overall throughput in terms of the number of clients an individual DB can support.

    If largely depends on your scenario as to whether you think this is a good tradeoff.

    You say the “we app” if you mean web app then their are similar tradeoffs, I’d recommend this blog post on using the TPL from a web application.

    http://blogs.msdn.com/b/pfxteam/archive/2010/02/08/9960003.aspx

    It’s the same issue. You trade of individual request latency for throughput or vis versa.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem: We have a web app that calls some web services asynchronously (from the
I'm writing this Web app that is associated with a Microsoft sql database. I
I've got a web app that uses a MS SQL Server 2008 database. Recently
I'm building a web app that attempts to install/upgrade the database on App_Start. Part
Im currently building an web-app that allows users to upload content via blobstore and
I'm developing a web app that has a database backend. In the past I'm
I have a huge web app that is having issues with memory leak in
I've got a web app that sends out emails in response to a user-initaited
I'm writing a web app that points to external links. I'm looking to create
I am testing a web app that writes cookies to subdomain.thisdomain.com and several subfolders

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.