hivesolutions / colony-plugins

The base colony plugins
http://getcolony.com
4 stars 2 forks source link

Table per class with complete inheritance support in Entity Manager #3

Open joamag opened 11 years ago

joamag commented 11 years ago

Introdution

Speed is important step for enterprise solutions and a one table per class strategy is failing to provide these required speed for complex queries.

Solution

In order to optimize the speed of queries, joining with the upper levels of the inheritance structure must be avoided. This strategy is called table per concrete class and all the sub classes must contain the complete set of attributes of the upper leves, also in order to provide fast polymorphic queries the instance must be stored at all the levels.

References