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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:33:27+00:00 2026-06-03T11:33:27+00:00

This is something I have been doing recently and was wondering if others do

  • 0

This is something I have been doing recently and was wondering if others do it too and if so what is the name for this type of practice.

I keep shortcut columns in my tables so I can avoid doing too many joins. For example if I have a users table and a geo table:

Users:

id | username | zip       | copy_latitude | copy_longitude | other info
------------------------------------------------------------------------
1  | Bob      | 11345     | 40.81518000   | -73.04550000   | etc...

Geo:

id | zip_code | latitude    | longitude
----------------------------------------
1  | 11345    | 40.81518000 | -73.04550000

Now if I wanted to get Bob’s latitude and longitude I can do so in the same select statement that I would use to get bob’s other info:

SELECT a_bunch_of_other_columns, copy_latitude, copy_longitude 
FROM users WHERE id = 1;

vs (if I didn’t keep the shortcuts):

SELECT a_bunch_of_other_columns, latitude, longitude 
FROM users
INNER JOIN geo ON user.zip = geo.zip_code
WHERE users.id = 1;

By keeping the shortcuts I saved myself a join. Now this may not seem like a big deal for this example table and statement but I have some huge tables and statements with 6 or 7 joins and I feel like this helps.

The only overhead is having to update both places anytime something changes. I take care of that via stored procedures.

My questions are:

  • is this a common practice among developers and if so what is it called?
  • is my database still normalized if I do this? (I would assume so since I am always keeping a valid copy of the data in the proper
    location even if I don’t use it from there, for the sake of data integrity)
  • 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-03T11:33:28+00:00Added an answer on June 3, 2026 at 11:33 am

    It is not normalised anymore as you have duplicated data in your tables.

    I guess you could call it “Denormalised”.

    The only time your would really do it is for speed/optimisation purposes, which is what you are saying in your question, that you have done it to remove complexity.

    Honestly I have never got to the point in any of my databases where I have needed to do this to optimise query speed.

    I would suggest doing a benchmark to see just how much faster it is then a well indexed join

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

Sidebar

Related Questions

I have just recently been doing something in C#, i would like to know
Ever since I started programming this has been something I have been curious about.
So this is something that I have not been able to find any documentation
I have something like this in HTML: <select name=selection> <option id=1>First Option</option> ... </select>
I have been experimenting with the devkitARM toolchain for NDS homebrew recently. Something I
I have been stuck on this for a day or two, I have recently
Im doing something like this to get a list of all users that have
I've been doing some reading recently and have encountered the Law of Demeter. Now
I've not used C++ very much in the past, and have recently been doing
Recently I've been doing lots of weekend coding, and have began to really need

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.