这会帮助增加延迟加载树的效率。
延迟加载和缓存Dojo内容。
使用轻量级、延迟加载的对象确保性能。
Ensuring performance using lightweight, lazily loaded objects.
默认情况下延迟加载是关闭的,但这个属性可以自定义修改。
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.
如何写的工具类,以便我可以使用设计模式实现延迟加载?
How to write Utility class so that I can perform lazy loading with DTO design pattern?
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.
延迟加载行为保证了依赖的数据只有在真正请求时才会被加载进来,这样就可以避免创建无谓的对象。
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.
在多个查询语句的执行过程中需要保持数据库连接,否则会抛出一个延迟加载异常,这将导致数据出现问题。
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.
延迟抓取的另一个问题就是在获取到请求的数据前要一直打开数据库连接,否则应用就会抛出一个延迟加载异常。
Another issue with lazy fetching is that the database connection has to be retained until all the required data is fetched else the application will throw a lazy loading exception.
TreeGrid支持多列、可编辑、延迟加载的结点,十分强大的垂直滚动特性以及许多应用所需的一些东西。
The TreeGrid which supports multiple columns, editing, lazy loading of nodes, and virtual scrolling is also very powerful and something that many applications require.
TreeGrid支持多列、可编辑、延迟加载的结点,十分强大的垂直滚动特性以及许多应用所需的一些东西。
The TreeGrid which supports multiple columns, editing, lazy loading of nodes, and virtual scrolling is also very powerful and something that many applications require.
应用推荐