这会帮助增加延迟加载树的效率。
创建一个延迟加载的dojo树。
延迟加载和缓存Dojo内容。
使用轻量级、延迟加载的对象确保性能。
Ensuring performance using lightweight, lazily loaded objects.
这就是延迟加载,即尽可能长的延迟查询语句的执行。
This is lazy loading, or deferring the query as long as possible.
默认情况下延迟加载是关闭的,但这个属性可以自定义修改。
Lazy loading is turned off by default but this setting can be customized.
延迟加载是一种仅在需要时,从用户数据库获取数据的技术。
Lazy loading is a technique used to fetch data from the user database only when it's required.
通过下面的示例代码来了解一下延迟加载所面对的问题及解决办法。
Let us take a sample code to see the issues faced using lazy loading and a solution to overcome it.
Persevere 会执行延迟加载以便只有需要的数据才会被下载。
Persevere does lazy loading so that only the necessary data is downloaded.
树的延迟加载根据树中存储的数据量,可能导致廉价的,或者昂贵的操作。
Lazy loading of a tree can result in either a cheap or expensive operation, depending on the amount of data a tree will hold.
如果您不能及早识别一个工作集,则延迟加载就是填补缓存的下一个最佳选择。
If you cannot identify a working set ahead of time, then a lazy load is the next best option for filling a cache.
在这一部分,您可以使用JsonRestStore创建一个延迟加载的树。
In this section, you create a lazy loaded Dojo tree using JsonRestStore.
您可以使用延迟加载的Dojo树创建这个分层结构,使应用程序更高效。
You'll create this hierarchy using a Dojo tree with lazy loading to make the application more efficient.
Dojo和JsonRestStore让您能够利用dojo树上的延迟加载功能。
Dojo and JsonRestStore let you harness the lazy loading functions on Dojo trees.
通过这样,不仅可以延迟加载HTML内容,还可以采用延迟加载方式加载关联的逻辑。
This way, not only can I lazy load the HTML content, I can also load the associated logic lazily.
在深入了解dojo树创建过程之前,下一部分包含了一些创建延迟加载树的关键概念。
Before digging deep into the Dojo tree creation process, the next section covers a few essential concepts for creating a lazy loaded tree.
延迟加载策略的构想是,如果将一个数据加载到了缓存中,就有可能再次用到它。
The assumption on a lazy-load strategy is that once a piece of data has been loaded into the cache it will likely be used again.
在准备缓存时,一些“热门”数据可以作为所有记录的子集,其余数据则可以采用延迟加载。
The cache can be warmed up with a "hot" set of data which is a subset of the all the records and the remaining data will be loaded lazily.
在少量的数据上应用延迟加载会导致对服务器的多次请求,而缓慢的响应可能会导致用户的沮丧。
Applying lazy loading on a small amount of data results in multiple requests to the server, and the slow response might lead to user frustration.
WebSphereeXtremeScale直接通过其加载程序工具支持延迟加载。
WebSphere eXtreme Scale supports lazy load directly through its loader facility.
延迟加载行为保证了依赖的数据只有在真正请求时才会被加载进来,这样就可以避免创建无谓的对象。
This behavior known as Lazy Loading ensures that dependents are only loaded as they are specifically requested and hence makes it possible to avoid unnecessary creation of objects.
当工作台窗口打开时它可以全权要求WorkbenchUI激活插件,而不受延迟加载策略限制。
It is a carte Blanche request to the workbench UI to activate a plug-in once the workbench window is opened, bypassing the deferred load strategy.
可以通过延迟加载的方式,从DirectoryListing应用程序服务遍历文件结构。
You can now traverse through the hierarchy of files in a lazy-loading way from the DirectoryListing application service.
合起来,TreeGrid和QueryReadStore是一个功能强大的处理延迟加载数据的组合。
Together, the TreeGrid and QueryReadStore are a powerful combination for lazy loading data.
在多个查询语句的执行过程中需要保持数据库连接,否则会抛出一个延迟加载异常,这将导致数据出现问题。
Database connection needs to be maintained for the duration of the multiple query cycle else a lazy loading exception is thrown, resulting in inadequate use of resources.
可以极大减少初始下载大小的另一个方法是,对页面的内容部分进行延迟加载,并在加载之后对其进行缓存。
Another practice that can greatly increase initial download size is lazy loading the content portion of the page and caching it once it is downloaded.
问题是,您忽略了延迟加载内容(或太过复杂而不能考虑这个选项),特别在构建中包括所有小部件的情况下。
The problem is that you negate (or make it extremely complicated to) lazy load content, especially if you include all your widgets as part of a build.
插件清单定义了足够的信息,使Eclipse平台可以延迟加载代码,同时仍可以识别扩展的初始影响。
The plug-in manifest defines enough information to enable the Eclipse platform to postpone loading code while still recognizing the initial contributions of an extension.
插件清单定义了足够的信息,使Eclipse平台可以延迟加载代码,同时仍可以识别扩展的初始影响。
The plug-in manifest defines enough information to enable the Eclipse platform to postpone loading code while still recognizing the initial contributions of an extension.
应用推荐