Created
July 6, 2020 14:53
-
-
Save erikdarlingdata/69173ffcf2b572bf692346c22ec68cce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.539" Build="15.0.4013.40" xmlns="http://schemas.microsoft.com/sqlserver/2004/07/showplan"> | |
<BatchSequence> | |
<Batch> | |
<Statements> | |
<StmtSimple StatementCompId="5" StatementEstRows="2552" StatementId="1" StatementOptmLevel="TRIVIAL" CardinalityEstimationModelVersion="150" StatementSubTreeCost="0.0137518" StatementText="select top(@I) C.number
from master..spt_values as C
left outer join @T on 1 = 0" StatementType="SELECT" QueryHash="0x10B4DA3A4C2D6934" QueryPlanHash="0x9DCAA14E08A0DA8A" RetrievedFromCache="true" SecurityPolicyApplied="false"> | |
<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="16" CompileTime="0" CompileCPU="0" CompileMemory="168"> | |
<MemoryGrantInfo SerialRequiredMemory="0" SerialDesiredMemory="0" GrantedMemory="0" MaxUsedMemory="0" /> | |
<OptimizerHardwareDependentProperties EstimatedAvailableMemoryGrant="655360" EstimatedPagesCached="327680" EstimatedAvailableDegreeOfParallelism="4" MaxCompileMemory="40306064" /> | |
<TraceFlags IsCompileTime="true"> | |
<TraceFlag Value="3895" Scope="Global" /> | |
</TraceFlags> | |
<TraceFlags IsCompileTime="false"> | |
<TraceFlag Value="3895" Scope="Global" /> | |
</TraceFlags> | |
<WaitStats> | |
<Wait WaitType="ASYNC_NETWORK_IO" WaitTimeMs="91" WaitCount="1" /> | |
<Wait WaitType="SOS_SCHEDULER_YIELD" WaitTimeMs="1" WaitCount="1" /> | |
</WaitStats> | |
<QueryTimeStats CpuTime="0" ElapsedTime="93" /> | |
<RelOp AvgRowSize="11" EstimateCPU="0.0002552" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row" EstimateRows="2552" LogicalOp="Top" NodeId="0" Parallel="false" PhysicalOp="Top" EstimatedTotalSubtreeCost="0.0137518"> | |
<OutputList> | |
<ColumnReference Database="[mssqlsystemresource]" Schema="[sys]" Table="[spt_values]" Column="number" /> | |
</OutputList> | |
<RunTimeInformation> | |
<RunTimeCountersPerThread Thread="0" ActualRows="2552" Batches="0" ActualEndOfScans="1" ActualExecutions="1" ActualExecutionMode="Row" ActualElapsedms="0" ActualCPUms="0" /> | |
</RunTimeInformation> | |
<Top RowCount="false" IsPercent="false" WithTies="false"> | |
<TopExpression> | |
<ScalarOperator ScalarString="CONVERT_IMPLICIT(bigint,[@I],0)"> | |
<Identifier> | |
<ColumnReference Column="ConstExpr1007"> | |
<ScalarOperator> | |
<Convert DataType="bigint" Style="0" Implicit="true"> | |
<ScalarOperator> | |
<Identifier> | |
<ColumnReference Column="@I" /> | |
</Identifier> | |
</ScalarOperator> | |
</Convert> | |
</ScalarOperator> | |
</ColumnReference> | |
</Identifier> | |
</ScalarOperator> | |
</TopExpression> | |
<RelOp AvgRowSize="11" EstimateCPU="0.0029642" EstimateIO="0.0105324" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row" EstimateRows="2552" EstimatedRowsRead="2552" LogicalOp="Index Scan" NodeId="1" Parallel="false" PhysicalOp="Index Scan" EstimatedTotalSubtreeCost="0.0134966" TableCardinality="2552"> | |
<OutputList> | |
<ColumnReference Database="[mssqlsystemresource]" Schema="[sys]" Table="[spt_values]" Column="number" /> | |
</OutputList> | |
<RunTimeInformation> | |
<RunTimeCountersPerThread Thread="0" ActualRows="2552" ActualRowsRead="2552" Batches="0" ActualEndOfScans="1" ActualExecutions="1" ActualExecutionMode="Row" ActualElapsedms="0" ActualCPUms="0" ActualScans="1" ActualLogicalReads="13" ActualPhysicalReads="0" ActualReadAheads="0" ActualLobLogicalReads="0" ActualLobPhysicalReads="0" ActualLobReadAheads="0" /> | |
</RunTimeInformation> | |
<IndexScan Ordered="false" ForcedIndex="false" ForceSeek="false" ForceScan="false" NoExpandHint="false" Storage="RowStore"> | |
<DefinedValues> | |
<DefinedValue> | |
<ColumnReference Database="[mssqlsystemresource]" Schema="[sys]" Table="[spt_values]" Column="number" /> | |
</DefinedValue> | |
</DefinedValues> | |
<Object Database="[mssqlsystemresource]" Schema="[sys]" Table="[spt_values]" Index="[ix2_spt_values_nu_nc]" IndexKind="NonClustered" Storage="RowStore" /> | |
</IndexScan> | |
</RelOp> | |
</Top> | |
</RelOp> | |
<ParameterList> | |
<ColumnReference Column="@I" ParameterDataType="int" ParameterCompiledValue="(200000)" ParameterRuntimeValue="(200000)" /> | |
</ParameterList> | |
</QueryPlan> | |
</StmtSimple> | |
</Statements> | |
</Batch> | |
</BatchSequence> | |
</ShowPlanXML> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment