bom / não importa / não inclui Chave Primária na cobertura do índice?
is égood
oudoesn't matter
oubad
INCLUIR a chave primária em um índice de cobertura
CREATE NONCLUSTERED INDEX index_name_here ON dbo.table_name_here
(column_to_index_here)
INCLUDE (primary_key_column,other_column_here)
WITH( STATISTICS_NORECOMPUTE=OFF, IGNORE_DUP_KEY=OFF, --<default junk from SSMS
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
Acho que não importa, já que o PK estará no índice de qualquer maneir
EDITA - esclarecer
minhaprimary_key_column
está agrupado, mas você pode explicar / dar informações quando não estive
Estarei entrando paradbo.table_name_here
nocolumn_to_index_here
e, em seguida, ingressará em outras tabelas emprimary_key_column
eother_column_here
.