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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:45:31+00:00 2026-05-16T03:45:31+00:00

I have several web sequential pages which will modify a record and its child

  • 0

I have several web sequential pages which will modify a record and its child records in the database, called a “project”. Such a project is currently passed between pages using its database ID in the URL parameters.

A project has some information specific to itself, and also consists of one or more Tasks, which each have information specific to itself.

Is it faster (alternatively, more maintainable or more easily understood) to hit the database each time I need to query the same project (and its tasks), or should I query the database once (either once for each page or once for all pages and save to Session) and check the saved object rather than the database?

Note that I am asking about checking data, not saving it (I will still hit the database each time I need to save something, obviously).

  • 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-16T03:45:31+00:00Added an answer on May 16, 2026 at 3:45 am

    Put the database ID in the session and get the rest from the database. Is the database and the web server on the same hardware, if so that database will cache those results anyway, and it should return that data fairly fast?

    I assume your taking about a simple site, if your talking about twitter/facebook scale, you’ve got a lot more to worry about then where to store your data.

    Two ideas:

    1. As @ronaldwidha said, use more Ajax.
      This will allow you to hit that
      database for your data, while not
      looking like you are 🙂
    2. Test it and
      try it. Try it out, hit the
      database for project details 1000
      times, and get your stopwatch out.

    Often times questions like this depend on so many variables it’s hard to give a straight answer. If you’ve got a lot of data, a project with 10,000 tasks, well that’s going to be a bad idea to store in the session. If you’re just asking about storing database ID and a project name, well then I’d say store it in the session.

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

Sidebar

Related Questions

I have several web pages containing tables, for which I'd like to have line-borders
I'm working on a project where we have several SOAP Web Services developed on
I have several DropDown controls on a Web Form which are filled using AJAX
I have noticed from several web pages that apparently Spring 3.0 supports @Inject from
I have a web service project with several web services. Two of this web
I have: I have several web pages both with this outline: <body> <div id=container>
I have several pages of my web application done. They all use the same
We have several user controls in VS 2010 in a web project that we'd
I have several web pages on several different sites that I want to mirror
I have several web pages to parse, and there are links like <a href=/news/monde/0,,3204267-VU5WX0lEIDUy,00.html

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.