Operator Showplan Wstaw indeks klastrowany
Clustered Index Insert Showplan operator wstawia wiersze z jego wkład do indeks klastrowany określone w Argument kolumna. Argument Kolumna zawiera również SET:() predykat, która wskazuje wartość, do której każda kolumna jest zestaw.Jeśli Clustered Index Insert nie ma elementów podrzędnych dla wartości Wstaw, wiersz wstawiony jest pobierana z Insert samego operator.
Clustered Index Insert jest operator fizycznej.
Graficzne wykonanie planu ikony
Przykłady
Poniższy przykład wstawia wiersz do tabela, która ma indeks klastrowany.Wyjście plan wykonania pokazuje, że optymalizator kwerendy używa Clustered Index Insert operator, aby wstawić wiersz.
USE AdventureWorks2008R2;
GO
SET NOCOUNT ON;
GO
SET SHOWPLAN_ALL ON;
GO
INSERT INTO Production.UnitMeasure
VALUES (N'F2', N'Square Feet', GETDATE());
GO
Wykonanie planu produkcji Clustered Index Insert operator pojawia się poniżej.
PhysicalOp
-----------------------------------------------------------------------
Clustered Index Insert
Argument
-----------------------------------------------------------------------
OBJECT:([AdventureWorks2008R2].[Production].[UnitMeasure].[PK_UnitMeasure_UnitMeasureCode]),
OBJECT:([AdventureWorks2008R2].[Production].[UnitMeasure].[AK_UnitMeasure_Name]),
SET:([AdventureWorks2008R2].[Production].[UnitMeasure].[UnitMeasureCode] =
RaiseIfNull([Expr1003]),[AdventureWorks2008R2].[Production].[UnitMeasure].[Name] =
RaiseIfNull([Expr1004]),[AdventureWorks2008R2].[Production].[UnitMeasure].[ModifiedDate] = RaiseIfNull(getdate())),
DEFINE:([Expr1003]=CONVERT_IMPLICIT(nchar(3),[@1],0),
[Expr1004]=CONVERT_IMPLICIT(nvarchar(50),[@2],0), [ConstExpr1006]=getdate())