History Management of Data - Slowly Changing Dimensions: Marek Wancerz, Paweł Wancerz
History Management of Data - Slowly Changing Dimensions: Marek Wancerz, Paweł Wancerz
DIMENSIONS
Abstract: The article describes few methods of managing data history in databases and data marts. There are many types of dealing with the
history of the data. This article will show us some examples, point advantages and disadvantages of each of the method and show us possible
scenarios of use.
Streszczenie: Artykuł opisuje sposób zarządzania historią tabel wymiarowych w bazach danych i hurtowniach danych. Istnieje kilka spo-
sobów na archiwizowanie historii. Artykuł ma na celu przybliżenie ich funkcjonalności popartej przykładami, wskazanie zalet i wad oraz
możliwych scenariuszy użycia.
Introduction
Nowadays, almost everyone use data in they lives. But how to To understand the way of data history management we should take
understand word „data”? In IT, we can name it as a set of values a look on the main methods.
or variables belonging to a set of items. It is very often represented
in a tabular form (columns + rows), data tree (parent-child rela-
tionship) or in a graphical structure (tables models with graphical
2. Slowly Changing Dimensions – main types
representation). The data we keep doesn't have to be in a text
The easiest way to discuss about the Slowly Changing Dimensions
form. We can keep it as a number or even an image.
types is to go through all of them with some examples, pointing
The data kept in our databases (or data marts) and its quality gives
advantages and disadvantages and possible usage scenarios. We
us a huge advantage for the data visualization and management.
have 3 basic types of Slowly Changing Dimensions.
But we have to remember that the dimensional data is not a stable
entity and it might change over time. To manage the data history I) SCD Type 1 – overwriting the old values
Slowly Changing Dimensions was invented.
Figure (Fig. 2) shows the change of data for an item. The Cat-
egory for an Item RoboticBook was Science Fiction in 2012. In
1. Slowly Changing Dimensions overview 2013 the Item changed its Category to Reality.