对于庞大而复杂的对象图,使用自跟踪实体是否有效?
1)由于自跟踪实体不支持延迟加载,出于效率考虑,它们是否打算与不太大的实体图一起使用?
2)您建议使用哪种解决方案来代替使用自我跟踪实体? DTO?
谢谢!
1) Since self-tracking entities do not support lazy loading, are they intended to be used with not-so-big entities graphs because of efficiency?
2) Which solution do you suggest instead of using self-tracking entities? DTOs?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,这不是一个好的结论。延迟加载很方便,但也可能成为性能问题,无论是小图还是大图。
没有什么可以替代限制所需记录数量的良好设计。
No, that's not a good conclusion. Lazy loading is convenient but can also become a performance problem, with small graphs as well as big.
There is no substitute for a good design that will limit the # of records required.