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?
YEAR | COUNT |
1900 | 146,923 |
2007 | 3 |
2008 | 3,917 |
2009 | 140,909 |
2010 | 3,795,786 |
2011 | 7,510,183 |
2012 | 11,792,919 |
2013 | 39,181,814 |
2014 | 30,408,919 |