This project is read-only.

Very simple recipe execution takes a very long time to run.

Topics: Core, General, Troubleshooting
Sep 29, 2012 at 5:41 AM
Edited Sep 29, 2012 at 5:42 AM

I have a site with hundreds if not thousands of content items. I created a very simple recipe to import a widget for the updated navigation menu after upgrading to Orchard 1.5.1. 

The recipe is pasted below; seems like it would run really fast but Orchard.exe cpu use spikes to 100% on one core for several minutes while this recipe runs. I had to run from command line to avoid a timeout issue. 

Is this normal? I know there were issues with running large recipes, and I had to split up large ones into multiple files in the past to get them to run in reasonable time, but apparently once you have enough content in Orchard even a very small recipe can take a long time to run. 


<?xml version="1.0" encoding="utf-8" ?>

        <MenuWidget Id="/Identifier=c4c73c2e50be42a9bf7e55635ef09624" Status="Published">
            <CommonPart Owner="/User.UserName=admin" Container="/Layer.LayerName=Default" CreatedUtc="2012-07-10T17:43:31Z" PublishedUtc="2012-07-10T17:43:31Z" ModifiedUtc="2012-07-10T17:43:31Z" />
            <IdentityPart Identifier="c4c73c2e50be42a9bf7e55635ef09624" />
            <WidgetPart Title="Main Menu" Position="1" Zone="Navigation" RenderTitle="false" Name="MainMenu" />
            <MenuWidgetPart Menu="/name=Main Menu" StartLevel="1" Levels="0" Breadcrumb="false" />