Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Scheduler PerformanceScheduler Performance
Previous
 
Next
New Post
11/3/2009 10:23 AM
 

Has anyone else noticed that in 5.1.4 the scheduler is beating the heck out of the database?  The following 2 queries are the top database resource consumers.  I have yet to analyze them to see what indexes / optimizations need to be added to make them a bit more reasonable.  Note my schedule history table has about 40K rows.  But still that's not really all that many!

These queries are using 90 CPU ms / sec & 76 CPU ms / sec !!! and they run 6 times a minute.   the next highest contender is 2 CPU ms / sec and it runs 308 times / minute.

Looking quickly at the execution plans, it seems that the final sort/grouping of each of the queries accounts for more than 75% if the total execution cost.  Anyone have some thoughts?

SELECT S.ScheduleID,
           S.TypeFullName,
           S.TimeLapse,
           S.TimeLapseMeasurement, 
           S.RetryTimeLapse,
           S.RetryTimeLapseMeasurement,
           S.ObjectDependencies,
           S.AttachToEvent,
           S.RetainHistoryNum,
           S.CatchUpEnabled,
           S.Enabled,
           SH.NextStart,
           S.Servers
    FROM dbo.DNN_Schedule S
        LEFT JOIN dbo.DNN_ScheduleHistory SH ON S.ScheduleID = SH.ScheduleID
    WHERE (SH.ScheduleHistoryID = (SELECT TOP 1 S1.ScheduleHistoryID FROM dbo.DNN_ScheduleHistory S1 WHERE S1.ScheduleID = S.ScheduleID ORDER BY S1.NextStart DESC) OR SH.ScheduleHistoryID IS NULL)
        AND (@Server IS NULL or S.Servers LIKE '%,' + @Server + ',%' or S.Servers IS NULL)
    GROUP BY S.ScheduleID, S.TypeFullName, S.TimeLapse, S.TimeLapseMeasurement, S.RetryTimeLapse, S.RetryTimeLapseMeasurement, S.ObjectDependencies, S.AttachToEvent, S.RetainHistoryNum, S.CatchUpEnabled, S.Enabled, SH.NextStart, S.Servers

SELECT TOP 1 S.ScheduleID,
       S.TypeFullName,
       S.TimeLapse,
       S.TimeLapseMeasurement, 
       S.RetryTimeLapse,
       S.RetryTimeLapseMeasurement,
       S.ObjectDependencies,
       S.AttachToEvent,
       S.RetainHistoryNum,
       S.CatchUpEnabled,
       S.Enabled,
       SH.NextStart
FROM dbo.DNN_Schedule S
LEFT JOIN dbo.DNN_ScheduleHistory SH ON S.ScheduleID = SH.ScheduleID
WHERE ((SH.ScheduleHistoryID = (SELECT TOP 1 S1.ScheduleHistoryID FROM DNN_ScheduleHistory S1 WHERE S1.ScheduleID = S.ScheduleID ORDER BY S1.NextStart DESC) OR SH.ScheduleHistoryID IS NULL) AND S.Enabled = 1)
AND (S.Servers LIKE ',%' + @Server + '%,' or S.Servers IS NULL)
GROUP BY S.ScheduleID, S.TypeFullName, S.TimeLapse, S.TimeLapseMeasurement, S.RetryTimeLapse, S.RetryTimeLapseMeasurement, S.ObjectDependencies, S.AttachToEvent, S.RetainHistoryNum, S.CatchUpEnabled, S.Enabled, SH.NextStart
ORDER BY SH.NextStart ASC

 

 

 
New Post
11/3/2009 11:57 AM
 

What scheduler mode are you using in Host Settings?


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/4/2009 10:18 AM
 

It's set to "Request Method"

The issue isn't the number of times that queries are executing, I get enough hits to make sure that scheduled items happen on a more or less timely basis.  The issue is that thequeries are horribly inefficient.

I think this might be related to my observation about the purging of the eventlog and the query being really inefficient.
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/321885/scope/posts/Default.aspx

cooincidental with my upgrade to 5.1.4, the daily purge of the schedule history jumped from about 6 seconds to hitting the timeout of 30 seconds and failing.  I just ran the query by hand it took 3:12!!!!  Ouch, it clear out the 44K rows that have built up in the table.  The execution plan XML is below.   It seems that the big offenders are the Index spool and the stream aggregate.  I'm not enough of an expert on SQL server to know how to address that, I just know that accounts for 96% of the query.

Running the query again immediatly resulted in a much better (00:02) result.

I had turned down the frequency of the purge from running every minute to once a day, I'll try chaning it to every hour or 2 and see what happens.  I don't see any need for the purge to run every minute, but perhaps once a day it just not frequent enough as the schedule history methods as coded seem to require the schedule history table to be relativly small.

 

 

<?xml version="1.0" encoding="utf-16"?>
<ShowPlanXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.1" Build="10.0.2531.0" xmlns="http://schemas.microsoft.com/sqlserver/2004/07/showplan">
  <BatchSequence>
    <Batch>
      <Statements>
        <StmtSimple StatementCompId="1" StatementEstRows="20326.9" StatementId="1" StatementOptmLevel="FULL" StatementSubTreeCost="64.7861" StatementText="DELETE FROM dbo.DNN_ScheduleHistory&#xD;&#xA;FROM dbo.DNN_Schedule s&#xD;&#xA;WHERE (&#xD;&#xA;  SELECT COUNT(*) &#xD;&#xA;  FROM dbo.DNN_ScheduleHistory sh&#xD;&#xA;  WHERE sh.ScheduleID = DNN_ScheduleHistory.ScheduleID&#xD;&#xA;  AND sh.StartDate &gt;= DNN_ScheduleHistory.StartDate&#xD;&#xA;) &gt; s.RetainHistoryNum&#xD;&#xA;AND s.RetainHistoryNum &lt;&gt; -1&#xD;&#xA;AND s.ScheduleID = DNN_ScheduleHistory.ScheduleID&#xD;&#xA;" StatementType="DELETE" QueryHash="0x00473FAE14A1F646" QueryPlanHash="0xB55877A41A6181BD">
          <StatementSetOptions ANSI_NULLS="true" ANSI_PADDING="true" ANSI_WARNINGS="true" ARITHABORT="true" CONCAT_NULL_YIELDS_NULL="true" NUMERIC_ROUNDABORT="false" QUOTED_IDENTIFIER="true" />
          <QueryPlan DegreeOfParallelism="1" CachedPlanSize="48" CompileTime="50" CompileCPU="29" CompileMemory="664">
            <RelOp AvgRowSize="9" EstimateCPU="0.0609808" EstimateIO="2.39354" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="20326.9" LogicalOp="Delete" NodeId="0" Parallel="false" PhysicalOp="Clustered Index Delete" EstimatedTotalSubtreeCost="64.7861">
              <OutputList />
              <RunTimeInformation>
                <RunTimeCountersPerThread Thread="0" ActualRows="44333" ActualEndOfScans="1" ActualExecutions="1" />
              </RunTimeInformation>
              <Update DMLRequestSort="true">
                <Object Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Index="[IX_DNN_ScheduleHistory_StartDate]" IndexKind="Clustered" />
                <Object Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Index="[IX_DNN_ScheduleHistory_NextStart]" IndexKind="NonClustered" />
                <Object Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Index="[PK_DNN_ScheduleHistory]" IndexKind="NonClustered" />
                <RelOp AvgRowSize="23" EstimateCPU="0.007418" EstimateIO="0.013125" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="20326.9" LogicalOp="Eager Spool" NodeId="1" Parallel="false" PhysicalOp="Table Spool" EstimatedTotalSubtreeCost="62.3316">
                  <OutputList>
                    <ColumnReference Column="Uniq1002" />
                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="StartDate" />
                  </OutputList>
                  <RunTimeInformation>
                    <RunTimeCountersPerThread Thread="0" ActualRebinds="1" ActualRewinds="0" ActualRows="44333" ActualEndOfScans="1" ActualExecutions="1" />
                  </RunTimeInformation>
                  <Spool>
                    <RelOp AvgRowSize="23" EstimateCPU="0.00203269" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="20326.9" LogicalOp="Top" NodeId="2" Parallel="false" PhysicalOp="Top" EstimatedTotalSubtreeCost="62.311">
                      <OutputList>
                        <ColumnReference Column="Uniq1002" />
                        <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                        <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="StartDate" />
                      </OutputList>
                      <RunTimeInformation>
                        <RunTimeCountersPerThread Thread="0" ActualRows="44333" ActualEndOfScans="1" ActualExecutions="1" />
                      </RunTimeInformation>
                      <Top RowCount="true" IsPercent="false" WithTies="false">
                        <TopExpression>
                          <ScalarOperator ScalarString="(0)">
                            <Const ConstValue="(0)" />
                          </ScalarOperator>
                        </TopExpression>
                        <RelOp AvgRowSize="23" EstimateCPU="0.0849666" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="20326.9" LogicalOp="Inner Join" NodeId="3" Parallel="false" PhysicalOp="Nested Loops" EstimatedTotalSubtreeCost="62.309">
                          <OutputList>
                            <ColumnReference Column="Uniq1002" />
                            <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                            <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="StartDate" />
                          </OutputList>
                          <RunTimeInformation>
                            <RunTimeCountersPerThread Thread="0" ActualRows="44333" ActualEndOfScans="1" ActualExecutions="1" />
                          </RunTimeInformation>
                          <NestedLoops Optimized="false">
                            <OuterReferences>
                              <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                              <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="StartDate" />
                              <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="RetainHistoryNum" />
                            </OuterReferences>
                            <RelOp AvgRowSize="27" EstimateCPU="0.0849666" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="20326.9" LogicalOp="Inner Join" NodeId="4" Parallel="false" PhysicalOp="Nested Loops" EstimatedTotalSubtreeCost="0.284008">
                              <OutputList>
                                <ColumnReference Column="Uniq1002" />
                                <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                                <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="StartDate" />
                                <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="RetainHistoryNum" />
                              </OutputList>
                              <RunTimeInformation>
                                <RunTimeCountersPerThread Thread="0" ActualRows="44481" ActualEndOfScans="1" ActualExecutions="1" />
                              </RunTimeInformation>
                              <NestedLoops Optimized="false">
                                <OuterReferences>
                                  <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="ScheduleID" />
                                </OuterReferences>
                                <RelOp AvgRowSize="15" EstimateCPU="0.0001691" EstimateIO="0.003125" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="9" LogicalOp="Clustered Index Scan" NodeId="5" Parallel="false" PhysicalOp="Clustered Index Scan" EstimatedTotalSubtreeCost="0.0032941" TableCardinality="11">
                                  <OutputList>
                                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="ScheduleID" />
                                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="RetainHistoryNum" />
                                  </OutputList>
                                  <RunTimeInformation>
                                    <RunTimeCountersPerThread Thread="0" ActualRows="9" ActualEndOfScans="1" ActualExecutions="1" />
                                  </RunTimeInformation>
                                  <IndexScan Ordered="true" ScanDirection="FORWARD" ForcedIndex="false" ForceSeek="false" NoExpandHint="false">
                                    <DefinedValues>
                                      <DefinedValue>
                                        <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="ScheduleID" />
                                      </DefinedValue>
                                      <DefinedValue>
                                        <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="RetainHistoryNum" />
                                      </DefinedValue>
                                    </DefinedValues>
                                    <Object Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Index="[PK_DNN_Schedule]" Alias="[s]" IndexKind="Clustered" />
                                    <Predicate>
                                      <ScalarOperator ScalarString="[NUKE5-test2].[dbo].[DNN_Schedule].[RetainHistoryNum] as [s].[RetainHistoryNum]&lt;&gt;(-1)">
                                        <Compare CompareOp="NE">
                                          <ScalarOperator>
                                            <Identifier>
                                              <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="RetainHistoryNum" />
                                            </Identifier>
                                          </ScalarOperator>
                                          <ScalarOperator>
                                            <Const ConstValue="(-1)" />
                                          </ScalarOperator>
                                        </Compare>
                                      </ScalarOperator>
                                    </Predicate>
                                  </IndexScan>
                                </RelOp>
                                <RelOp AvgRowSize="23" EstimateCPU="0.0026414" EstimateIO="0.0216435" EstimateRebinds="8" EstimateRewinds="0" EstimateRows="2258.55" LogicalOp="Clustered Index Seek" NodeId="6" Parallel="false" PhysicalOp="Clustered Index Seek" EstimatedTotalSubtreeCost="0.195742" TableCardinality="44479">
                                  <OutputList>
                                    <ColumnReference Column="Uniq1002" />
                                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="StartDate" />
                                  </OutputList>
                                  <RunTimeInformation>
                                    <RunTimeCountersPerThread Thread="0" ActualRows="44481" ActualEndOfScans="9" ActualExecutions="9" />
                                  </RunTimeInformation>
                                  <IndexScan Ordered="true" ScanDirection="FORWARD" ForcedIndex="false" ForceSeek="false" NoExpandHint="false">
                                    <DefinedValues>
                                      <DefinedValue>
                                        <ColumnReference Column="Uniq1002" />
                                      </DefinedValue>
                                      <DefinedValue>
                                        <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                                      </DefinedValue>
                                      <DefinedValue>
                                        <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="StartDate" />
                                      </DefinedValue>
                                    </DefinedValues>
                                    <Object Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Index="[IX_DNN_ScheduleHistory_StartDate]" IndexKind="Clustered" />
                                    <SeekPredicates>
                                      <SeekPredicateNew>
                                        <SeekKeys>
                                          <Prefix ScanType="EQ">
                                            <RangeColumns>
                                              <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                                            </RangeColumns>
                                            <RangeExpressions>
                                              <ScalarOperator ScalarString="[NUKE5-test2].[dbo].[DNN_Schedule].[ScheduleID] as [s].[ScheduleID]">
                                                <Identifier>
                                                  <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="ScheduleID" />
                                                </Identifier>
                                              </ScalarOperator>
                                            </RangeExpressions>
                                          </Prefix>
                                        </SeekKeys>
                                      </SeekPredicateNew>
                                    </SeekPredicates>
                                  </IndexScan>
                                </RelOp>
                              </NestedLoops>
                            </RelOp>
                            <RelOp AvgRowSize="9" EstimateCPU="4.8E-07" EstimateIO="0" EstimateRebinds="20325.9" EstimateRewinds="0" EstimateRows="1" LogicalOp="Filter" NodeId="7" Parallel="false" PhysicalOp="Filter" EstimatedTotalSubtreeCost="61.94">
                              <OutputList />
                              <RunTimeInformation>
                                <RunTimeCountersPerThread Thread="0" ActualRows="44333" ActualEndOfScans="148" ActualExecutions="44481" />
                              </RunTimeInformation>
                              <Filter StartupExpression="false">
                                <RelOp AvgRowSize="11" EstimateCPU="0.000946445" EstimateIO="0" EstimateRebinds="20325.9" EstimateRewinds="0" EstimateRows="1" LogicalOp="Compute Scalar" NodeId="8" Parallel="false" PhysicalOp="Compute Scalar" EstimatedTotalSubtreeCost="61.9303">
                                  <OutputList>
                                    <ColumnReference Column="Expr1009" />
                                  </OutputList>
                                  <ComputeScalar>
                                    <DefinedValues>
                                      <DefinedValue>
                                        <ColumnReference Column="Expr1009" />
                                        <ScalarOperator ScalarString="CONVERT_IMPLICIT(int,[Expr1017],0)">
                                          <Convert DataType="int" Style="0" Implicit="true">
                                            <ScalarOperator>
                                              <Identifier>
                                                <ColumnReference Column="Expr1017" />
                                              </Identifier>
                                            </ScalarOperator>
                                          </Convert>
                                        </ScalarOperator>
                                      </DefinedValue>
                                    </DefinedValues>
                                    <RelOp AvgRowSize="11" EstimateCPU="0.000946445" EstimateIO="0" EstimateRebinds="20325.9" EstimateRewinds="0" EstimateRows="1" LogicalOp="Aggregate" NodeId="9" Parallel="false" PhysicalOp="Stream Aggregate" EstimatedTotalSubtreeCost="61.9303">
                                      <OutputList>
                                        <ColumnReference Column="Expr1017" />
                                      </OutputList>
                                      <RunTimeInformation>
                                        <RunTimeCountersPerThread Thread="0" ActualRows="44481" ActualEndOfScans="148" ActualExecutions="44481" />
                                      </RunTimeInformation>
                                      <StreamAggregate>
                                        <DefinedValues>
                                          <DefinedValue>
                                            <ColumnReference Column="Expr1017" />
                                            <ScalarOperator ScalarString="Count(*)">
                                              <Aggregate AggType="countstar" Distinct="false" />
                                            </ScalarOperator>
                                          </DefinedValue>
                                        </DefinedValues>
                                        <RelOp AvgRowSize="9" EstimateCPU="0.0464702" EstimateIO="1.02359" EstimateRebinds="20325.9" EstimateRewinds="0" EstimateRows="1576.58" LogicalOp="Eager Spool" NodeId="10" Parallel="false" PhysicalOp="Index Spool" EstimatedTotalSubtreeCost="42.6919">
                                          <OutputList />
                                          <RunTimeInformation>
                                            <RunTimeCountersPerThread Thread="0" ActualRebinds="44481" ActualRewinds="0" ActualRows="822638558" ActualEndOfScans="44481" ActualExecutions="44481" />
                                          </RunTimeInformation>
                                          <Spool>
                                            <SeekPredicateNew>
                                              <SeekKeys>
                                                <Prefix ScanType="EQ">
                                                  <RangeColumns>
                                                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Alias="[sh]" Column="ScheduleID" />
                                                  </RangeColumns>
                                                  <RangeExpressions>
                                                    <ScalarOperator ScalarString="[NUKE5-test2].[dbo].[DNN_ScheduleHistory].[ScheduleID]">
                                                      <Identifier>
                                                        <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="ScheduleID" />
                                                      </Identifier>
                                                    </ScalarOperator>
                                                  </RangeExpressions>
                                                </Prefix>
                                                <StartRange ScanType="GE">
                                                  <RangeColumns>
                                                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Alias="[sh]" Column="StartDate" />
                                                  </RangeColumns>
                                                  <RangeExpressions>
                                                    <ScalarOperator ScalarString="[NUKE5-test2].[dbo].[DNN_ScheduleHistory].[StartDate]">
                                                      <Identifier>
                                                        <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Column="StartDate" />
                                                      </Identifier>
                                                    </ScalarOperator>
                                                  </RangeExpressions>
                                                </StartRange>
                                              </SeekKeys>
                                            </SeekPredicateNew>
                                            <RelOp AvgRowSize="19" EstimateCPU="0.0490839" EstimateIO="0.0816435" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="44479" LogicalOp="Index Scan" NodeId="11" Parallel="false" PhysicalOp="Index Scan" EstimatedTotalSubtreeCost="0.130727" TableCardinality="44479">
                                              <OutputList>
                                                <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Alias="[sh]" Column="ScheduleID" />
                                                <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Alias="[sh]" Column="StartDate" />
                                              </OutputList>
                                              <RunTimeInformation>
                                                <RunTimeCountersPerThread Thread="0" ActualRows="44479" ActualEndOfScans="1" ActualExecutions="1" />
                                              </RunTimeInformation>
                                              <IndexScan Ordered="false" ForcedIndex="false" ForceSeek="false" NoExpandHint="false">
                                                <DefinedValues>
                                                  <DefinedValue>
                                                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Alias="[sh]" Column="ScheduleID" />
                                                  </DefinedValue>
                                                  <DefinedValue>
                                                    <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Alias="[sh]" Column="StartDate" />
                                                  </DefinedValue>
                                                </DefinedValues>
                                                <Object Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_ScheduleHistory]" Index="[PK_DNN_ScheduleHistory]" Alias="[sh]" IndexKind="NonClustered" />
                                              </IndexScan>
                                            </RelOp>
                                          </Spool>
                                        </RelOp>
                                      </StreamAggregate>
                                    </RelOp>
                                  </ComputeScalar>
                                </RelOp>
                                <Predicate>
                                  <ScalarOperator ScalarString="[Expr1009]&gt;[NUKE5-test2].[dbo].[DNN_Schedule].[RetainHistoryNum] as [s].[RetainHistoryNum]">
                                    <Compare CompareOp="GT">
                                      <ScalarOperator>
                                        <Identifier>
                                          <ColumnReference Column="Expr1009" />
                                        </Identifier>
                                      </ScalarOperator>
                                      <ScalarOperator>
                                        <Identifier>
                                          <ColumnReference Database="[NUKE5-test2]" Schema="[dbo]" Table="[DNN_Schedule]" Alias="[s]" Column="RetainHistoryNum" />
                                        </Identifier>
                                      </ScalarOperator>
                                    </Compare>
                                  </ScalarOperator>
                                </Predicate>
                              </Filter>
                            </RelOp>
                          </NestedLoops>
                        </RelOp>
                      </Top>
                    </RelOp>
                  </Spool>
                </RelOp>
              </Update>
            </RelOp>
          </QueryPlan>
        </StmtSimple>
      </Statements>
    </Batch>
  </BatchSequence>
</ShowPlanXML>

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Scheduler PerformanceScheduler Performance


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out