Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clustered index on ELMAH_Error #376

Open
atifaziz opened this issue Aug 25, 2015 · 0 comments
Open

clustered index on ELMAH_Error #376

atifaziz opened this issue Aug 25, 2015 · 0 comments

Comments

@atifaziz
Copy link
Member

atifaziz commented Aug 25, 2015

What new or enhanced feature are you proposing?

Currently, there is no clustered index on ELMAH_Error. From what I understand, this was changed back in r131 as a performance issue. However, this changed the nature of the table to a heap.

I would propose that if ErrorId is not appropriate for a clustered index (it is currently set as the primary key, but non-clustered) then place Sequence as the clustered index with ErrorId remaining as a non-clustered unique index on the table.

Previous suggestion (issue #222) was:

CREATE UNIQUE CLUSTERED INDEX [PK_Sequence] ON [dbo].[ELMAH_Error] 
(
    [Sequence] ASC
)

CREATE UNIQUE NONCLUSTERED INDEX [IX_ErrorId] ON [dbo].[ELMAH_Error] 
(
    [ErrorId] ASC
)

What goal would this enhancement help you achieve?

Better, more consistent performance and adherence with generally recognized best practices.
(see http://msdn.microsoft.com/en-us/library/hh213609.aspx)


Originally reported on Google Code with ID 376

Reported by elsimer on 2014-10-26 02:17:36

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

No branches or pull requests

1 participant