Lazy loading is a technique used to fetch data from the user database only when it's required.
延迟加载是一种仅在需要时,从用户数据库获取数据的技术。
Notice that the fetch rule is set to lazy, so you will not fetch the order when someone asks for the customer.
注意,该获取规则被设置为Lazy,所以当有人查询该客户时,您将不获取该订单。
If we use lazy loading feature on employee entity for dependent and department entities then in use case 2 and 3, more SQL queries are fired to fetch the required data.
如果对实体employee所关联的dependent和department这两个实体使用延迟加载,那么在操作2和3中就会生成更多的SQL查询语句。
The fetch relationship between the entities Trade and TradeDetails is set to Lazy, which helps your performance and memory footprint, as you will see in the next section.
实体Trade和TradeDetails之间的提取关系被设置为Lazy,正如在下一节中会看到的,这有助于改进性能和内存占用量。
We use fetch to tune performance. We may use lazy to define a contract for what data is always available in any detached instance of a particular class.
我们可以采用延迟去定义一些契约,用抓取来改善性能,对某特定类的某个脱管的实例,知道有哪些数据是可以使用的。
We use fetch to tune performance. We may use lazy to define a contract for what data is always available in any detached instance of a particular class.
我们可以采用延迟去定义一些契约,用抓取来改善性能,对某特定类的某个脱管的实例,知道有哪些数据是可以使用的。
应用推荐