Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Which table schema takes up more hard disk space?

$
0
0

Every 15-mins, we have to read the scores of 300 elements, and each element has 400 KPIs. So every 15 minutes, we read 120K scores (300 elements * 400 KPIs).

There are two ways of storing this data into our DB:

1) Create tables so that each KPI is a column: [Element], [Date], [Hour], [Minute], [KPI1], [KPI2],..., [KPI399], [KPI400]

2) Create a table that includes the KPI and score as a record: [Element], [Date], [Hour], [Minute], [KPIName], [Score]

In both cases, the scores will be type INT.

Even though this data will eventually be grouped by hour, we will still need to save that actual data.

Which of these two schema will take up less hard drive?

Thanks.


VM


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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