I need some help figuring out how to best partition a large transaction table in SQL Server 2014. The transaction table has a CLUSTERED INDEX on the date, a primary key to identify each record, and an institution ID to identify which institution the transaction belongs to that is not part of any index. This table houses data for 3 small institutions, but the combined data over 6 years have made the table too bloated for efficient querying.
Would it make sense to first alter the table to include the institution ID in the CLUSTERED INDEX and partition by year/institution ID like this:
FG1 -> 2008 Institution 1
FG2 -> 2008 Institution 2
FG3 -> 2008 Institution 3
FG4 -> 2009 Institution 1
FG5 -> 2009 Institution 2
FG6 -> 2009 Institution 3
....
OR will partitioning by year regardless of institution be just fine (no need to alter the CLUSTERED INDEX) like this:
FG1 -> 2008
FG2 -> 2009
FG3 -> 2010
...