Sitecore:预取自定义数据库的数据

时间:2017-05-18 12:49:46

标签: c# .net sitecore config prefetch

我在Sitecore解决方案中使用了额外的数据库,让我们称之为" webextra"数据库。我需要从" webextra"中预取数据。网站上的数据库启动,所以我使用相同的" prefetch"配置部分和#34; web"数据库。但它并不适用于" webextra" (来自" web"的数据按预期获取)。当我第一次打电话给" webextra"只是需要花费很多时间。 如何在启动站点时配置预取数据?



<database id="webextra" singleInstance="true" type="Sitecore.Data.DefaultDatabase, Sitecore.Kernel" patch:source="zzz.x.Common.config">
<param desc="name" patch:source="zzz.x.Common.config">$(id)</param>
<icon>Images/control_image16x16.png</icon>
<securityEnabled>true</securityEnabled>
<dataProviders hint="list:AddDataProvider" patch:source="zzz.x.Common.config">
<dataProvider ref="dataProviders/main" param1="$(id)" patch:source="zzz.x.Common.config">
<disableGroup>publishing</disableGroup>
<prefetch hint="raw:AddPrefetch" patch:source="zzz.x.Common.config">
<childLimit>100</childLimit>
<logStats>false</logStats>
<template desc="template">{AB86861A-6030-46C5-B394-E8F99E8B87DB}</template>
<template desc="template section">{E269FBB5-3750-427A-9149-7AA950B49301}</template>
<template desc="template field">{455A3E98-A627-4B40-8035-E683A0331AC7}</template>
<template desc="node">{239F9CF4-E5A0-44E0-B342-0F32CD4C6D8B}</template>
<template desc="folder">{A87A00B1-E6DB-45AB-8B54-636FEC3B5523}</template>
<template desc="language">{F68F13A6-3395-426A-B9A1-FA2DC60D94EB}</template>
<template desc="device">{B6F7EEB4-E8D7-476F-8936-5ACE6A76F20B}</template>
<item desc="root">{11111111-1111-1111-1111-111111111111}</item>
<children desc="main sections">{11111111-1111-1111-1111-111111111111}</children>
<cacheSize>50MB</cacheSize>
<template desc="alias">{54BCFFB7-8F46-4948-AE74-DA5B6B5AFA86}</template>
<template desc="layout">{3A45A723-64EE-4919-9D41-02FD40FD1466}</template>
<template desc="xsl rendering">{F1F1D639-4F54-40C2-8BE0-81266B392CEB}</template>
<item desc="home">{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}</item>
<children desc="main items">{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}</children>
<sc.include file="/App_Config/Prefetch/Common.config" patch:source="zzz.x.Common.config"/>
<sc.include file="/App_Config/Prefetch/Webdb.config" patch:source="zzz.x.Common.config"/>
</prefetch>
</dataProvider>
</dataProviders>
<proxiesEnabled>false</proxiesEnabled>
<proxyDataProvider ref="proxyDataProviders/main" param1="$(id)" patch:source="zzz.x.Common.config"/>
<archives hint="raw:AddArchive" patch:source="zzz.x.Common.config">
<archive name="archive" patch:source="zzz.x.Common.config"/>
<archive name="recyclebin" patch:source="zzz.x.Common.config"/>
</archives>
<cacheSizes hint="setting" patch:source="zzz.x.Common.config">
<data>100MB</data>
<items>50MB</items>
<paths>2500KB</paths>
<itempaths>50MB</itempaths>
<standardValues>2500KB</standardValues>
</cacheSizes>
<Engines.DataEngine.Commands.AddFromTemplatePrototype patch:source="zzz.x.Common.config">
<obj type="Sitecore.Buckets.Commands.AddFromTemplateCommand, Sitecore.Buckets"/>
</Engines.DataEngine.Commands.AddFromTemplatePrototype>
</database>
&#13;
&#13;
&#13;

0 个答案:

没有答案