Indexing strategy for a reporting table with historical snapshots
Hello, I have the requirement of making a report which stores historical snapshots. The snapshots are identified by a snapshot date, with each snapshot having data for 4 quarters.
The access pattern will always be a lookup by snapshot date and quarter, and then some filters on top of that.
Snapshots run 2x weekly and generate about 40,000 records each time. Only about 1m records per year. A safe assumption is that the will be kept for 5 years, so 5m records in this table.
I'm pretty new to SQL server and databases in general, but based on my research, I think a clustered index on the snapshot date and quarter would work well here as it would enable quick access to the data according to my usage patterns.
What do you think? Can anyone give more insight on this or good resources (I'm trying to build my knowledge to be able to make these decisions independently)?