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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:13:32+00:00 2026-05-13T07:13:32+00:00

I have a pretty large social network type site I have working on for

  • 0

I have a pretty large social network type site I have working on for about 2 years (high traffic and 100’s of files) I have been experimenting for the last couple years with tweaking things for max performance for the traffic and I have learned a lot. Now I have a huge task, I am planning to completely re-code my social network so I am re-designing mysql DB’s and everything.

Below is a photo I made up of a couple mysql tables that I have a question about. I currently have the login table which is used in the login process, once a user is logged into the site they very rarely need to hit the table again unless editing a email or password. I then have a user table which is basicly the users settings and profile data for the site. This is where I have questions, should it be better performance to split the user table into smaller tables? For example if you view the user table you will see several fields that I have marked as “setting_” should I just create a seperate setting table? I also have fields marked with “count” which could be total count of comments, photo’s, friends, mail messages, etc. So should I create another table to store just the total count of things?

The reason I have them all on 1 table now is because I was thinking maybe it would be better if I could cut down on mysql queries, instead of hitting 3 tables to get information on every page load I could hit 1.

Sorry if this is confusing, and thanks for any tips.

alt text http://img2.pict.com/b0/57/63/2281110/0/800/dbtable.jpg

  • 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-13T07:13:33+00:00Added an answer on May 13, 2026 at 7:13 am

    should I just create a seperate setting table?

    So should I create another table to store just the total count of things?

    There is not a single correct answer for this, it depends on how your application is doing.

    What you can do is to measure and extrapolate the results in a dev environment.

    In one hand, using a separate table will save you some space and the code will be easier to modify.

    In the other hand you may lose some performance ( and you already think ) by having to join information from different tables.

    About the count I think it’s fine to have it there, although it is always said that is better to calculate this kind of stuff, I don’t think for this situation it hurt you at all.

    But again, the only way to know what’s better your you and your specific app, is to measuring, profiling and find out what’s the benefit of doing so. Probably you would only gain 2% of improvement.

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

Sidebar

Related Questions

I have a bunch of pretty large CSV (comma separated values) files and I
we have a a pretty large SVN repository (50 GB, Over 100000 revisions). Working
I'm looking at building a Rails application which will have some pretty large tables
I have pretty much finished my first working Symbian application, but in my hastened
I am creating a social network and want to have a similar photo gallery
I have pretty simple problem. I have a large file that goes through three
For some current projects, I'm working with several data structures that are pretty large
I have pretty big background of .net, and I've decided that i want to
I would like to have pretty URLs for my tagging system along with all
I have a pretty standard table set-up in a current application using the .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.