Reputation: 173
I was wondering if anyone has some general sys admin questions on how best to setup MS SQL server for speed. I have placed the log files on a different drive with its own controller and moved the indexes to their drive but on the same controller as the main data files.
What other way can a system admin setup MS SQL server to speed up disk access, query times?
Upvotes: 10
Views: 44292
Reputation: 2668
The question is quite general, so a general answer will fit:
Upvotes: 20
Reputation: 415600
In order of impact on performance, from most important to least:
While a poorly-configured or under-powered server can kill performance, the typical setup should be good enough that this kind of thing is now pretty far down the list of what you should worry about from a performance perspective.
Of course, if you have a specific unexplained bottleneck then maybe you need to configure something. But you should share that information as well.
Upvotes: 3
Reputation: 56934
First of all, I would try to identify the bottleneck; what is the 'thing' where you can improve most / What is the slowest part of your system ?
Is it your code ? (Appropriate indexes, set-based processing, avoid cursors as much as possible, ... ) Is it hardware - related ? Is it configuration-related ? - logs on a separate filegroup / separate disk - can you move some tables to another filegroup , so that tables that are often joined together in queries are in separate filegroups - do you rebuild the indexes often ?
Upvotes: 1
Reputation: 148
Be careful of the DTA (tuning advisor). It all depends on the workload.
Quick things: Index better. Look for long running queries, or slow ones, and add indexes to support here. If this is OLTP, beware of adding too many indexes.
Write better code, post slow queries somewhere (here, or SQLServerCentral.com) and get ideas for speeding them
More memory
Separation of logs from data physically helps, but you have to be IO bound for this to make a difference.
Upvotes: 0