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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:31:50+00:00 2026-06-10T09:31:50+00:00

Related but not quite the same thing: which is more effcient? (or at least

  • 0

Related but not quite the same thing:which is more effcient? (or at least reading through it didn’t help me any)

So I am working on a new site (selling insurance policies) we already have several sites up (its a rails application) that do this so I have a table in my sql database called policies.
As you can imagine it has lots of columns to support all the different options available.

While working on this new site I realized I needed to keep track of 20+ more options.

My concern is that the policies table is already large, but the columns in it right now are almost all used by every application we have. Whereas if I add these they would only be used for the new site and would leave tons of null cells on all the rest of the policies.

So my question is do I add those to the existing table or create a new table just for the policies sold on that site? Also I believe that if I created a new table I could leave out some of the columns (but not very many) from the main policies table because they are not needed for this application.

  • 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-10T09:31:52+00:00Added an answer on June 10, 2026 at 9:31 am

    “[A]lmost all used” suggests that you could, upon considering it, split it more naturally.

    Now, much of the efficiency concern here goes down to three things:

    1. A single table can be scanned through more quickly than joins across several.
    2. Large rows have a memory and disk-space cost in themselves.
    3. If a single table represents something that is really a 1-to-many, then it requires more work on insert, delete or update.

    Point 2 only really comes in, should there be a lot of cases where you need one particular subset of the data, and another batch where you need another subset, and maybe just a few where you need them all. If you’re using most of the columns in most places, then it doesn’t gain you anything. In that case, splitting tables is bad.

    Point 1 and 3 argue for and against joining into one big table, respectively.

    Before any of that though, let’s get back to “almost all”. If there are several rows with a batch of null fields, why? Often answering that “why?” reveals that really there’s a natural split there, that should be broken off into another table as part of normal normalisation*. Repetition of fields, is an even greater suggestion that this is the case.

    Do this first.

    To denormalise – whether by splitting what is naturally one table, or joining what is naturally several – is a very particular type of optimisation – it makes some things more efficient at the cost of making other things less efficient, and it introduces possibilities of bugs that don’t exist otherwise. I would never say you should never denormalise – I do it myself – but you need to be able to say “I am denormalising table X & Y in this manner, because it will help case C which happens enough and I can live with the extra cost to case D”. Then you need to check it actually did help case C significantly and case D insignificantly, along with looking for hidden costs.

    One of the reasons for normalising in the first place is it gives good average performance over a wide range of cases. It’s the balance you want most of the time. Denormalising from the get-go rather than with a normalised database as a starting point is almost always premature.

    *Fun trivia fact: The name “normalization” was in part a take on Richard Nixon’s “Vietnamisation” policy meaning there was a running joke in some quarters of adding “-isation” onto just about anything. Were it not for the Whitehouse’s reaction to the Tet Offensive, we could be using the gernund “normalising,” or something completely different instead.

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

Sidebar

Related Questions

This question is related to (but perhaps not quite the same as): Does Django
I am facing a dilemma related to another question but not exactly the same.
Related but not quite what I am looking for merge-two-branches-what-direction. Situation: I have inherited
Found related questions but not the exact variant so I am posting a very
Related to my question here but not enough to open a new question. I
I've seen several questions/answers related to entirely creating a button in code, but not
I have seen many answers for this type of question but its not related
I have found some posts related to search on XML but those were not
not much of a programming question, but development related still, I'm starting Android development
The question is closely related to my past question here, but it is not

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.