I just took a database that contains about 2200 tables. More than 2000 of them do not have a clustered index (some do not have indexes at all).
All tables were configured to use a GUID as a unique identifier.
Just by looking at query plans, I see that a lot of table scans are going on. Most searches use a unique identifier for the search.
I am wondering if it is better to have a clustered index in a GUID than not have a clustered index at all. I assume that a clustered index in a 16 byte column will inevitably lead to fragmentation.
I could probably group them into other columns, but most search queries tend to search or join through GUIDS.
Any advice would be greatly appreciated. I have never seen so many GUIDs!
source
share