473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

database size vs. its performance

Hi all,

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.

Please let me know what are some good articles to read on this topic.

Thank you.

Regards,
AL
Nov 19 '08 #1
5 13047
On Tue, 18 Nov 2008 23:03:57 -0500, "al**@vp.pl" <al**@vp.plwrote:

Re 1: assuming the Account column is indexed, it's simply a matter of
how many reads are needed in a binary tree to find the record in
question. If N is the number of rows in a table, the number of reads
is log(N)/log(2). So for 1,024 rows it is 10, for 1,048,576 rows it is
20, etc. That's the power of indexing.
Without an index it would be N/2, so for 1,048,576 rows it would take
a long time.

I think physical size has little to do with it.

-Tom.
Microsoft Access MVP

>Hi all,

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.

Please let me know what are some good articles to read on this topic.

Thank you.

Regards,
AL
Nov 19 '08 #2
al**@vp.pl (al**@vp.pl) writes:
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, es****@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

Nov 19 '08 #3
Tom van Stiphout wrote:
On Tue, 18 Nov 2008 23:03:57 -0500, "al**@vp.pl" <al**@vp.plwrote:

Re 1: assuming the Account column is indexed, it's simply a matter of
how many reads are needed in a binary tree to find the record in
question. If N is the number of rows in a table, the number of reads
is log(N)/log(2). So for 1,024 rows it is 10, for 1,048,576 rows it is
20, etc. That's the power of indexing.
Without an index it would be N/2, so for 1,048,576 rows it would take
a long time.

I think physical size has little to do with it.

-Tom.
Microsoft Access MVP
Erland's answer is far closer to correct than what you have posted
which is clearly incorrect. The questions asked by the OP are
substantially more complex than just a question of size. Reading
rows from disk is one issue among many. Add to this the number of rows
that mush be hashed, joined, filtered, possibly swapped to disk due to
aggregation and ordering.

Physical size has a lot to do with it.
--
Daniel A. Morgan
University of Washington
da******@x.washington.edu (replace x with u to respond)
Nov 19 '08 #4
On Wed, 19 Nov 2008 09:05:58 -0800, DA Morgan <da******@psoug.org>
wrote:

The OP gave an example what he was thinking of: "...one customer's
account with 5,000 records vs. another account with 500,000
records...", which is what I latched on to.
With physical size I took him to mean such a table with few columns,
or with many columns, or alternatively a database that otherwise has a
bunch of other tables unrelated to our query of the Customer Accounts.
I believe in that context (which I should have clarified) my answer
was in the ballpark.

I have nothing but respect for Erland. He read the question
differently than I did.

-Tom.

>Tom van Stiphout wrote:
>On Tue, 18 Nov 2008 23:03:57 -0500, "al**@vp.pl" <al**@vp.plwrote:

Re 1: assuming the Account column is indexed, it's simply a matter of
how many reads are needed in a binary tree to find the record in
question. If N is the number of rows in a table, the number of reads
is log(N)/log(2). So for 1,024 rows it is 10, for 1,048,576 rows it is
20, etc. That's the power of indexing.
Without an index it would be N/2, so for 1,048,576 rows it would take
a long time.

I think physical size has little to do with it.

-Tom.
Microsoft Access MVP

Erland's answer is far closer to correct than what you have posted
which is clearly incorrect. The questions asked by the OP are
substantially more complex than just a question of size. Reading
rows from disk is one issue among many. Add to this the number of rows
that mush be hashed, joined, filtered, possibly swapped to disk due to
aggregation and ordering.

Physical size has a lot to do with it.
Nov 20 '08 #5
On Nov 19, 9:31*pm, Tom van Stiphout <tom7744.no.s...@cox.netwrote:
On Wed, 19 Nov 2008 09:05:58 -0800, DA Morgan <damor...@psoug.org>
wrote:

The OP gave an example what he was thinking of: "...one customer's
account with 5,000 records vs. another account with 500,000
records...", which is what I latched on to.
With physical size I took him to mean such a table with few columns,
or with many columns, or alternatively a database that otherwise has a
bunch of other tables unrelated to our query of the Customer Accounts.
I believe in that context (which I should have clarified) my answer
was in the ballpark.

I have nothing but respect for Erland. He read the question
differently than I did.
I vaguely remember someone with your name from the days I used to post
among the Access cry babies (a long time ago) :) They didn't
understand me then and they sure as hell aren't going to understand me
know:) Oh well, carry-on :) Hope things are well with ya.

best,
steve dassin
www.beyondsql.blogspot.com

-Tom.
Tom van Stiphout wrote:
On Tue, 18 Nov 2008 23:03:57 -0500, "a...@vp.pl" <a...@vp.plwrote:
Re 1: assuming the Account column is indexed, it's simply a matter of
how many reads are needed in a binary tree to find the record in
question. If N is the number of rows in a table, the number of reads
is log(N)/log(2). So for 1,024 rows it is 10, for 1,048,576 rows it is
20, etc. That's the power of indexing.
Without an index it would be N/2, so for 1,048,576 rows it would take
a long time.
I think physical size has little to do with it.
-Tom.
Microsoft Access MVP
Erland's answer is far closer to correct than what you have posted
which is clearly incorrect. The questions asked by the OP are
substantially more complex than just a question of size. Reading
rows from disk is one issue among many. Add to this the number of rows
that mush be hashed, joined, filtered, possibly swapped to disk due to
aggregation and ordering.
Physical size has a lot to do with it.
Nov 20 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Helena | last post by:
Hello Does anyone one know the max size of a database that I can create on MS-SQL server 7. Have had any problems using databases near the max size (slow performance, etc) Thanks Helena
19
by: dchow | last post by:
Our database size is currently 4G and is incrementing at a rate of 45M/day. What is the max size of a SQL database? And what is the size beyond which the server performance will start to go down?
3
by: josil20 | last post by:
Hi, We are in the process of selecting a database for a data warehouse type application. I want to get a feel for how big can a SQL Server database get. As per Microsoft, it can be multiple...
0
by: Sean Powell | last post by:
I am a SQL Server DBA Manager and my employer (Symantec) will be opening a position in the near future (20-60 days) for my DBA team. Here is the job description:...
5
by: Mark Kirkwood | last post by:
Dear all, Here is the first installment concerning ATA disks and RAID controller use in a database server. I happened to have a Solaris system to myself this week, so took the opportunity to use...
19
by: Andy B | last post by:
Hello, Sorry for this newbish question. Briefly, my problem: ------------------ I expect the database I'm working on to reach something in the order of 12-16 Gigabytes, and I am interested...
3
by: Hahn, Thomas | last post by:
Hallo, I have an ASP.NET application with masterpages, skins and diffrent themes. The application works fine, but the performance is not realy good. If I load an ASPX file, which has no database...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
9
by: =?Utf-8?B?TUNN?= | last post by:
I'm sure the answer to my question varies depending on the situation, but I am looking for a general "best practice". If I have an asp.net application and I load certain data from a database,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.