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

  • SEARCH
  • Home
  • 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 9159227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:26:26+00:00 2026-06-17T13:26:26+00:00

I am building a web application that connects to sql server. The process is

  • 0

I am building a web application that connects to sql server.
The process is like so : the user log in the site and from that moment there a few connections to the data base, but another thing that arrives from the data base is a representation of the client`s company as an object. the client may change some of the data during the time of the session. and when the session ends(the client closes the browser). the object sent to the data base.
So the question is from the moment that i brought the table to the code behind how should i keep it. in a datatable or ini file.
Keep in mind that this is browser and i want to keep it as fast as possible.
Thank to you all.

  • 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-06-17T13:26:27+00:00Added an answer on June 17, 2026 at 1:26 pm

    You should keep the data in the database, and read it from there at every page request. At least, there’s where you should start, and only consider caching data in memory if you actualy have any performance problems.

    You should not keep a database connection open for the user, you should open a new connection for each request, and close it as soon as possible. The connections are pooled by the system and reused, so it doesn’t have to establish a new connection to the database each time you open one, but you should let the system take care of all that.

    Data that is changed should be written to the database right away. Holding data in memory and writing it when the session ends has problems with stability and timing. The server doesn’t know when the user closes the browser, so the server consideres the session to end a time after the last request from thw user, usually 15 minutes. That means that the data would not be written when the user closes the browser, but up to 15 minutes later. If the user logs in again, the changes would show up after a while. If there is some problems with the server while it holds the data, the data would be lost, and the change would not be saved at all.

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

Sidebar

Related Questions

I am building a web application that needs to print directly from browser, however,
I am building a web application that is currently PHP with MySQL. There is
I'm building a web-applIcation that reads from different sites the rss feeds. On every
I'm building a web application that interfaces with another department's search site. The idea
I am building a web application from scratch that has registration and login functionality.
Background to question: We are building an online web application that requires the user
We're building a blog-like Pylons web application that uses CKeditor and allows to upload
I am building php web application that let's a user upload a MS Access
I'm building a quiz web application that dynamically generates from a database on my
I'm building a quiz web application that is dynamically generated from a database on

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.