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 512849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:21:43+00:00 2026-05-13T07:21:43+00:00

I’m relatively newbie to ASP.NET, and just building my second realtime webapplication. When I

  • 0

I’m relatively newbie to ASP.NET, and just building my second realtime webapplication.

When I was learning ASP.NET a year back, I have been told “It is costlier to connect and grab data from database, so make as much less connection as possible and re-use the retrieved data effectively”. The reasons given are

  1. A connection to the DB server first needs to be established.
  2. The concurrent connections on DB server will be less compared to IIS.
  3. Use disconnected architecture so that connection can be closed soon (ofcourse other flexibilites are also there)
    etc, etc.

And when my study expanded, I learnt other measures of storing data once retrieved from DB, across postbacks. But now, I’m learning one by one that they are costlier than connecting to DB. like…

  1. Session Variables : Memory size bubbles with number of users
  2. View State : The process of encryption and travel makes it costlier.
  3. Application Variables : Not so useful in all circumstances.
  4. Cache : (I know them, but not used them till now).

Also Oflate, I’m repeatedly advaised not to store retrieved tables in session, view state etc., but to connect to DB and grab it afresh on each postback.

And viewing this in light of SQL Server based Session State management, where the Framework itself used DB to store session. I feel, I should unlearn my initial learning and perception about database connectivity.

What do you say ???

Any other suggestions / tips are also welcome.

Thanks

  • 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-13T07:21:43+00:00Added an answer on May 13, 2026 at 7:21 am

    Generally what you’re stating is true, but connection pooling takes away a lot of the overhead of making connections.

    When using connection pooling, you have a collection of connections which are used when requests are made to a database. Those connections are then recycled for subsequent uses. I’m doing a very poor job of explaining it, but as always wikipedia has some good information to get you started.

    http://en.wikipedia.org/wiki/Connection_pool

    If you’re looking for a silver bullet, such as always use xxx, unfortunately there isn’t one. You’ll need to evaluate each scenario and make a determination there.

    For example, if you’ve got a slow connection to your database server, you’re probably going to want to cache the data your retrieve to minimize the number of calls you make to the database.

    On the other hand, if you’ve got a system with limited resources, calling to the database frequently could be a valid option.

    You’ll have to evaluate these situations for every system you develop to get the most out of your software, but if architected properly it is usually fairly easy to adapt the system to any constraints that you run into.

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

Sidebar

Related Questions

No related questions found

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.