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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:38:11+00:00 2026-05-25T13:38:11+00:00

for example a website where users can vote on questions (up and down) with

  • 0

for example a website where users can vote on questions (up and down) with this model:

    users(id)

    questions(id)

    votes(id,userId,questionid,vote)  
-- vote can be +1 or -1, or probably better bit 0 and 1

I’m thinking that when there are going to be lots of questions with lots of votes, there are going to be performance issues, especially when showing the list of questions, so

would it make sense to add a column to the questions like this:

questions(id, votessum)

and each time somebody votes besides doing an insert into the votes questions also to update the questions and set it’s votessum column

  • 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-25T13:38:12+00:00Added an answer on May 25, 2026 at 1:38 pm

    I would say that no, out of the gate I would not have such a column on the question table. I would determine via actual or estiamted usage plus performance testing whether the queries required to aggregate this data would become a performance bottleneck.

    If the query did create a bottleneck, I would first look at other optimizations, like improving indexes and materialized views before doing this kind of denormalization.

    Denormalization is sometime useful (and sometimes necessary), but it has its own problems and pitfalls that make fully exploring other options worthwhile.

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

Sidebar

Related Questions

On my website, users can upload large images. I display these images like this:
I'm building a db driven jokes website where the users can vote the jokes
We have a PHP website like reddit, users can vote for the stories. We
How can I transform a website to be able to handle multi language (example
I am working on a website in which many users can create their account
I have a website were users can create a profile and upload an image
I have an article based website where users can login, post articles etc. The
If users view documents on my website (for example a pdf file that represents
I have a website where users submit questions (zero, one or multiple per day),
I have a website where users can create new topics. Each topic has a

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.