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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:20:14+00:00 2026-05-20T18:20:14+00:00

Stackoverflow displays your reputation next to your username. I suppose it doesn’t hit the

  • 0

Stackoverflow displays your reputation next to your username. I suppose it doesn’t hit the database to calculate your score on every page render (or perhaps it does?). Would there be a total score field in the users table that gets updated when someone upvotes me?

What is the best practice for these kind of systems? I’m sorry if it’s an obvious question, I’m new to databases.

  • 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-20T18:20:15+00:00Added an answer on May 20, 2026 at 6:20 pm

    When you log in, the number is pulled from the database along with all your users information.

    It can be a user object. That user object has a property score which is initialized to whatever that number is in the database when you just log in.

    As you go around the website and do stuff, the property is updated but not the database.

    You can then update the database only once when the object user is destructed (either by logout or closing the browser) or after a certain amount of time.

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

Sidebar

Related Questions

Notice how StackOverflow displays some nice Status Bar message based on your activity? (That
In StackOverflow podcast no. 19 , Joe describe Fogcreek's decision to have one database
First, why I ask: Now that reputation points on StackOverflow have real value (you
I encountered many sites including stackoverflow.com whose page source do not show META tags
I know from reading this Stackoverflow question that the complier will look at your
I have a select input on my page. this select input displays/hides fields in
Stackoverflow is built on MVC and does a bunch of simple but nice things
StackOverflow user jolson had a very nice piece of code that exemplifies how one
Stackoverflow User Luke wrote in this answer : The boundaries between desktop and web
StackOverflow, you're my only hope! I am unfortunate enough to have inherited an ASP.NET

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.