SQL Server 2014 Partitioning -


i need figuring out how best partition large transaction table in sql server 2014. transaction table has clustered index on date, primary key identify each record, , institution id identify institution transaction belongs not part of index. table houses data 3 small institutions, combined data on 6 years have made table bloated efficient querying.

would make sense first alter table include institution id in clustered index , partition year/institution id 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 partitioning year regardless of institution fine (no need alter clustered index) this:

fg1 -> 2008 fg2 -> 2009 fg3 -> 2010 

...


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -