Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where to create NonClustered Primary Key?

Status
Not open for further replies.

Andel

Programmer
Joined
Feb 15, 2001
Messages
366
Location
US
Which one will give you best performance: Creating Nonclustered primary key in the Primary filegroup or in its own filegroup?

Thanks in advance.

Andel
andel@barroga.net
 
I thought the primary key was always clustered?

As for performance, it *sounds* like having it in its own filegroup would be faster, but why not try it both ways and see? Real-world environments with real-world production data (millions of rows) can give unexpected results.
 
Esquared the primary key is created as clustered by default, but you can create it as non clustered and create some other index as the only clustered one.

BOL said:
Some systems can improve their performance by controlling the placement of data and indexes onto specific disk drives. Filegroups can aid this process.

So different filegroups can aid performance but they should be on different physical drives with different drive controllers.

This is good when you have lots of users accessing simultaneously, but may not be necessary unless you are having performance problems.





Questions about posting. See faq183-874
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top