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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:18:36+00:00 2026-06-15T21:18:36+00:00

The question is add more columns or split database table. Assume that I have

  • 0

The question is add more columns or split database table.

Assume that I have a table which keeps:

UserId - Primary Key
Col1
Col2
Col3

Now I will keep another data as Col4 Col5,
but this data won’t be valid for every UserId.

Let’s say there are 2 million records at my main table and this additional data will be valid for only 25000 records. So the question is: should I compose another table as

UserId - Primary Key
Col4
Col5

or

use my main table as

UserId - Primary Key
Col1
Col2
Col3
Col4
Col5

Which way I should go? I care about performance. These additional cols are tinyint and will be default 0 not null.

SQL server 2008 R2

  • 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-15T21:18:37+00:00Added an answer on June 15, 2026 at 9:18 pm

    You don’t say what your existing fields are. And also, there isn’t a datatype called ‘tinyBit’.

    Even so, there are two possible impact cases:

    1) Your table includes a bit column already and you are adding two bit columns

    In this case, because bits are stored in packed bytes, the performance difference would be negligible anyway.

    2) Your table doesn’t include a bit column, or you are adding tinyint columns

    In this case, performance would be impacted – as there would be extra information per row. However, 2,000,000 records isn’t huge at all. A simple way to negate the cost of storing the extra columns in the same row would be to add an index which used INCLUDE to include the Col1, Col2 and Col3 columns. In that case, it would be usual for the Query Optimizer (QO) to select an index seek on the index with the included columns rather than a clustered index seek because it would have less cost.

    Edit -> Given your clarification, case 2) applies, and creating an index with the relevant columns INCLUDED would likely increase performance over any existing clustered seek. There will be an insert cost – so it would be down to the table’s read/write balance as to whether it was worth it.

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

Sidebar

Related Questions

Question 1) I have a control to which I add an attribute from the
I have a table with three columns, NODEID, X, Y. NODEID is the primary
this is a different question concerning: add a connection to database not working, asp.net
Question: I want to add a unique constraint on a mapping table (n:n). I
REVISED QUESTION : We have tracked this down to a custom add to cart
this is a part from my database structure: Table: Item Columns: ItemID, Title, Content,
Simple (I hope), HTML question. Let's say I have a column group that spans
I have a gridview that contains around 16 ItemTemplate columns. The values in each
I have a GridView with more than 30 columns. Most are plain controls but
I have a table with unique index on two columns, id_parent and sort_order to

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.