Database Historization

Here is one way to do it: Essentially, we never modify or delete the existing data. We “modify” it by creating a new version. We “delete” it by setting the DELETED flag. For example: If product changes the price, we insert a new row into PRODUCT_VERSION while old orders are kept connected to the old … Read more

How to choose the clustered index in SQL Server?

According to The Queen Of Indexing – Kimberly Tripp – what she looks for in a clustered index is primarily: Unique Narrow Static And if you can also guarantee: Ever-increasing pattern then you’re pretty close to having your ideal clustering key! Check out her entire blog post here, and another really interesting one about clustering … Read more