aleu@vp.pl (aleu@vp.pl) writes:
Quote:
Could you please advise whether there are documents describing impact of
MS SQL server 2005 database size on its performance? I have essentially
two things in mind when writing the "database size":
1.) number of records stored within the database (e.g. one customer's
account with 5,000 records vs. another account with 500,000 records.)
>
2.) physical database size (amount of data written to a disk volume) -
e.g. one database of 10GB versus another of 1TB. My guess is that the
10GB database will outperform the large one, but I was wondering whether
there are methods to measure / quantify this.
There is one standard reply to almost all performance questions: "It
depends".
You could very well have a lot better performance on a 1TB database than
with a 10 GB database. The big database could be well designed, be properly
indexed, be regularly defragmented etc. Furthermore, the access pattern
could be such that getting good performance is a relatively simple task.
On the other hand, the 10 GB database could be very poorly designed, have
no good indexes at all. Or the application using that database could simply
be more challenging in how it accesses the data.
What we can say, is that if the 10 GB database with poor performance would
grow to 1 TB, things will get a lot worse. If there are a lot of table
scans, response time will 100-fold.
If the properly designed 1TB would be distilled to a 10GB, response time
would possibly decrease somewhat, but not with a factor of 100.
There is one aspect, though, where the pure size matter, and that is with
maintenance. Backing up a 1TB database will take 100 times longer than
backing up a 10GB with the same hardware and backup procedures. The same
applies to defragmentation jobs.
What one can say is that the more your database grows, the more care you
need to take. Both in the database design, because flaws that may go
unnoticed in a small database, will kill you when the data size grows.
And the management of a 1TB database certainly is a challenge.
--
Erland Sommarskog, SQL Server MVP,
esquel@sommarskog.se
Links for SQL Server Books Online:
SQL 2008:
http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005:
http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:
http://www.microsoft.com/sql/prodinf...ons/books.mspx