Skip to content

Instantly share code, notes, and snippets.

@databoffin
Last active September 19, 2020 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save databoffin/6037256b7a13bea75ade78eed6de71c0 to your computer and use it in GitHub Desktop.
Save databoffin/6037256b7a13bea75ade78eed6de71c0 to your computer and use it in GitHub Desktop.
CREATE NONCLUSTERED INDEX [IX_pubid_uploadoptions]
ON [dbo].[sysmergearticles]
(
[pubid],
[upload_options]
);
GO
CREATE NONCLUSTERED INDEX [IX_uploadoptions_Included]
ON [dbo].[sysmergearticles] ([upload_options])
INCLUDE
(
[artid],
[pubid],
[nickname]
);
GO
CREATE NONCLUSTERED INDEX [IX_rowguid_origindatasource]
ON [dbo].[MSmerge_conflicts_info]
(
[rowguid],
[origin_datasource]
);
GO
CREATE NONCLUSTERED INDEX [IX_pubid_artid]
ON [dbo].[sysmergeschemachange]
(
[pubid],
[artid]
);
GO
CREATE NONCLUSTERED INDEX [IX_art_nick_genstatus_subscriber_number_changecount] ON [dbo].[MSmerge_genhistory]
(
[art_nick] ASC,
[genstatus] ASC,
[subscriber_number] ASC,
[changecount] ASC
);
GO
CREATE NONCLUSTERED INDEX [IX_artnick_coldate_genstatus] ON [dbo].[MSmerge_genhistory]
(
[art_nick] ASC,
[coldate] ASC,
[genstatus] ASC
);
GO
@databoffin
Copy link
Author

Added IX_art_nick_genstatus_subscriber_number_changecount_Included to help sp_msmakegeneration. Could supersede IX_artnick_coldate_genstatus_Included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment