Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

When to split a database table instead of adding more columns - Performance - Database Design

$
0
0

Okay the question is add more columns or split database table.

Assume that i have a table which keeps

UserId -PrimaryKey
Col1
Col2
Col3

Now i will keep another data as Col4 Col5 But these data won't be valid for every UserId

Lets say there are 2 million records at my main table and These additional datas will be valid for only 25000 records. So the question is should i compose another table as

UserId -PrimaryKey
Col4
Col5

or

use my main table as

UserId -PrimaryKey
Col1
Col2
Col3
Col4
Col5

Which way i should do ? i care about performance. These additional cols are tinyBit and will be default 0 not null

SQL server 2008 R2


Browser based Pokemon Style MMORPG Game Developer Used asp.net 4.0 routing at it'sMonsters


Viewing all articles
Browse latest Browse all 12554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>