【发布时间】:2023-03-31 19:06:01
【问题描述】:
在早期版本的 Entity Framework 中,使用 Table per Type 继承时存在一些严重的性能问题,如下所述:
或在这里:http://samscode.com/index.php/2010/01/the-entity-framework-v1-and-v4-deal-breaker-tpt-inheritance/
问题在于框架花费了很长时间来构建巨大的丑陋 SQL 语句(然后实际运行也可能需要很长时间)。
我知道 TPT 存在隐含的性能影响,因为表必须被连接,但我听说其他 ORM 解决方案在此方面的处理能力明显优于 EF4。
这个性能问题在多大程度上仍然是 EF6.1 中的一个严重问题?
【问题讨论】:
标签: entity-framework inheritance entity-framework-6 table-per-type