In Entity Framework code-first, why are primary keys always stored as clustered indexes?

。_饼干妹妹 提交于 2019-12-24 02:23:54

问题


I'm learning more about indexes in general, and clustered indexes in particular.

In this article by Markus Winand, he makes an excellent case for not using the primary key of a table as the clustering key.

He stresses index-only scans over using clustered indexes, and shows how you can use non-clustered indexes to get really fast results.

Can someone explain why Entity Framework code-first does not provide the means to store a table as a non-clustered-index?

What are the benefits of having every table clustered?

来源:https://stackoverflow.com/questions/47417056/in-entity-framework-code-first-why-are-primary-keys-always-stored-as-clustered

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!