Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Table Partitioning

$
0
0

I have a very large table of 96 Million rows and 144 columns.

I identified one column in the table that I could use for the Partition Column... BILL_DATE (datetime). This value is always a date at midnight.

I was thinking I can create a partition against YEAR(BILL_DATE). Every week we delete most data that is older than 15 Months (There's a handful of clients whose data we keep longer than 15 months) That is why 2013 and 2014 are so much larger than the rest.

Is Year too broad for Partition column? Should I do Half Years?

YEARCOUNT
1900146,923
20073
20083,917
2009140,909
20103,795,786
20117,510,183
201211,792,919
201339,181,814
201430,408,919

Viewing all articles
Browse latest Browse all 4871

Trending Articles



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