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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:16:01+00:00 2026-06-12T15:16:01+00:00

I have a table that stores a person’s information with close to 10 million

  • 0

I have a table that stores a person’s information with close to 10 million rows.

Currently State is a char(2) field on the person table. This leads to tons of duplication of data as you would expect. If I normalize State data into it’s own table and create an FK to it in the person table would this result in faster query times?

Before:

SELECT Name, City, State FROM Person WHERE State = 'WI'

After:

SELECT p.Name, p.City, s.Name as State
FROM Person p
    INNER JOIN State s ON p.State == s.Id
WHERE s.Name = 'WI'

It seems to me that this would accomplish an increase in performance but I am far from an expert when it comes to optimizing queries.

  • 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-12T15:16:01+00:00Added an answer on June 12, 2026 at 3:16 pm

    Normalization can result in decreased performance, but rarely if ever will it increase your performance in a case like this, because now the server has to look at two places on disk instead of just one.

    Normalization has two purposes:

    1. Reduce the amount of data stored on the disk
    2. Allow data to be updated in a single place

    Your query will not benefit from either of these advantages as

    1. there is not much of a difference between a char(2) and an int (the foreign key)
    2. the two digit code for a state will never change, so you will never need to update it
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table that stores user information. The table has a userid (identity)
I have a Pages table that stores all my view urls and this table
I have a table called Person that contain a field called PersonAge. I need
I have a table that looks like something like this: timestamp value person ===============================================
I have a database table column that stores urls of a persons website. This
I have a table that stores data that has been entered regarding the amount
I have a table that stores email in 3 diffrent columns name host and
I have a table that stores various clients I have done work for, separated
I have a table that stores employee names and years they worked. The columns
I have mysql table that has a column that stores xml as a string.

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.