我们将Address组件配置成延迟加载,这样要想得到所需的数据就需要更多的SQL查询,也就是说首先查询Person,然后再查询Address。
As the Address component is configured to be lazily loaded more SQL queries are run to fetch the required data i.e. first the Person and then his Address.
有时我们的业务并不会使用到依赖的那些组件,这时延迟加载就派上用场了,同时也无需加载那些用不上的组件了。
Lazy loading is useful when the dependent components are not used for a business use case we are trying to achieve and solves the issue of unnecessarily loading components.
有时我们的业务并不会使用到依赖的那些组件,这时延迟加载就派上用场了,同时也无需加载那些用不上的组件了。
Lazy loading is useful when the dependent components are not used for a business use case we are trying to achieve and solves the issue of unnecessarily loading components.
应用推荐