Reputation: 1
Suppose I have a MSSQL table for files and another for datetypes. Each file will have one created and modified date. A file may have 0 or more other dates of 15 different datetypes. A file can only have 1 date per datetype. Most files will only have 2 or 3 of these additional datetypes. All the dates must be stored in DATETIMEOFFSET types and the Files PK must be BIGINT type. The datetypes table's PK is TINYINT type. The last constraint is that I cant use uniqueidentifier columns (long story). Sorting speed and Storage space are both big considerations.
I am trying to figure out the best design pattern.
I have not supported my constraints in this post but if you can trust me on those it would be good. I'm dealing with quintillions of files rows.
Upvotes: -9
Views: 92