如何选择继承策略(Inheritance Strategy)。 作者对TPH(每个层次关系一张表,Table Per Hierarchy),TPT(每个类型一张表,Table Per Type)和TPC(每个真实类一张表,T...
基于50个网页-相关网页
Chapter 9 "Inheritance Mapping" in HRD [1] already has good coverage, so we will focus on SQL generation and tuning recommendations for each strategy.
hrd[1]中的第9章“继承映射”已经说得很清楚了,所以我们将关注SQL生成和针对每个策略的调优建议。
The purely object-oriented strategy pattern primarily relies on inheritance-based polymorphism to create a family of interchangeable algorithms that are swapped out based on context.
纯粹的面向对象的策略模式主要依赖于基于继承的多态来创建根据环境交换的可互换算法系列。
Inheritance is limited: with ActiveRecord, I'm forced to use a mapping strategy called single table inheritance (see Resources), which is not always optimal.
继承也受到限制:使用ActiveRecord时,我被迫使用单表继承映射策略,而该策略并不总是最佳选择。
应用推荐