Click here to Skip to main content
15,886,830 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I've created one partitioned table for a database and set primary file(.mdf) & log file(.ldf) path in "C:" and set secondary file's(.ndf) path in "D:" are in same hard disk. then did some queries performance. its well.

Now, my doubt is, If I will set primary file in one hard disk and secondary file in another hard disk, is it perform well.??

what is the performance difference between for both task???
pls, anyone say.....

advance thanks!!...
Posted

hii..
if you create your secondary datafile(.ndf) on seprate disk... then while querying you will get better perforamnce...
see the below links..

http://sqlserverpedia.com/wiki/Configuring_Database_Files_for_Optimal_Perfomance[^]
http://stackoverflow.com/questions/2707403/what-are-ndf-files[^]
 
Share this answer
 
Splitting the data across several disks speeds up the phydical operations in the database. However, there are lots of things that affect this:

  • Are the disks actually separate physical disks
  • Do you have control over the disks to instruct the physical location (for example consider RAID 5)
  • What is the plan to split the data, just let SQL Server to split it or control more thoroughly
  • Do the disks have a separate controller or is it shared and so on...

If you let the SQL Server to split the data, it'll most likely write to all of the files evenly. Depending on the situation, this may not be what you're after. For more control, have a look at the concept of FILEGROUP in CREATE DATABASE[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900