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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:07:07+00:00 2026-06-08T08:07:07+00:00

Employees are going to read data (a whole row) from the server through a

  • 0

Employees are going to read data (a whole row) from the server through a website.

The data to be read by them, the rows, is the result of quite a few joins involving something more than 10 tables.

Question:

1. Should I create and refresh a new table containing the end-resulta data to be read so at presentation layer we just do Select top 1 from table?

2. Or should I execute a Select… and a large series of joins, multiplication, etc in order to get that one row?


I’m about to start with this and the first idea I have to admint was to build a big new table with the data, but this question popped up since I’m being carefull with normalization through tables, and building the new one would result in redundancy of data.

Have to say that the desired product is for the Employees webpage to access the data as fast as possible (this is why at first I thought about creating and refreshing a new table)

Thanks.


EDIT

about 300 (maybe 1k in the future) people is going to access the website. They will query this one row, do what they have to do with it and then hit OK so they get a new row (guess it will be 2 minutes between query and query). What we don’t want to happen is: Employees are gonna get coached all the time, and one of those coaching factors is the time they take to work on a row (client I must say). So, if the query takes too long (a matter of seconds between every refresh would be “too long” for them) then I’d have to build a new way to take this into consideration. And of course I’d prefer not to.


EDIT 2

Once they hit OK, another query triggers to update data in the DataBase, then the original query so another row is sent to the webpage.

  • 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-08T08:07:09+00:00Added an answer on June 8, 2026 at 8:07 am

    Have to say that the desired product is for the Employees webpage to access the data as fast as possible

    Why does it have to be as fast as possible? If it runs in 0.1 seconds, isn’t that fast enough?

    Is it because you are running the query in a loop? If so, then I suggest that you change your strategy to fetch data in bulk rather than one row at a time.

    If you really do need it to be as fast as possible for whatever reason, then yes, having a precalculated result ready will be faster than making the query from the original data sources. Populating a table is one way of achieving this. Another way is to use a caching mechanism so that the request is only slow the first time, but repeated requests for the same data will be faster.

    Note that either precalculating the results or using caching will increase performance, but may give you problems with stale data when the original data changes.

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

Sidebar

Related Questions

I currently have quite a messy query, which joins data from multiple tables involving
select salary from employees order by salary desc MINUS select salary from employees where
I am trying to apply filters to employees to show them just on the
I have a few tables with the following relationships: Company hasMany Jobs, Employees, and
Im working with core data in the iphone, it seems that is going fine
es = Employee.objects.filter(a few filters).aggregate(Max('Age')) That query is going to give me the oldest
I'm going through Learn Python the Hard Way 2nd Edition and I've just done
Situation: We have employees that are requesting for a feature that allows them to
I’m just really learning Java, going through tutorials in book Java how to Program
We use employees' desktops for CPU-intensive simulation during the night. Desktops run Windows -

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.