Skip to content
This repository was archived by the owner on Sep 7, 2024. It is now read-only.

Tree based denormalization

alvinsj edited this page Aug 15, 2014 · 1 revision

Denormalization tree nodes are constructed upon the time denormalization definition is defined. Tree structure provides a better representation between the models' association. Then, denormalization is done by traversing across the nodes and choose the node method to denormalize the normal model.

Node Types

Column / ComputeColumn / MethodColumn

These are the leaf nodes. It implements the most basic assignment of value to the denormalized record upon denormalization. All 3 types define different ways of how the value is derived.

NormalizedAttr / RootNode

NormalizedAttr represents a node which need to be further denormalized. Upon denormalization, it looks up the attributes and association to do denormalization. RootNode behaves like NormalizedAttr, with some other extra properties (e.g. no prefix for column by default).

AssociatedAttr / HasMany / BelongsTo

This is where the more complicated denormalization methods are in.

Clone this wiki locally