Showing posts with label affect. Show all posts
Showing posts with label affect. Show all posts

Friday, March 23, 2012

Number of Objects and Performance

How does the number of objects (specifically tables) affect overall
performance of SQL Server?
Does SQL Server slow down as more objects are added - even if the overall
data size remains relatively the same?
How significant is this slowdown? Is it noticible after thousands of
objects, millions, etc?No, there's no direct correlation between number of tables and server
performance. There may be a correlation between number of tables used per
query and performance, however -- generally speaking, the more joins in a
query, the worse it tends to perform (again, generalizing a bit here -- that
is certainly not always the case.)
Adam Machanic
Pro SQL Server 2005, available now
http://www.apress.com/book/bookDisplay.html?bID=457
--
"Sierra" <Sierra@.discussions.microsoft.com> wrote in message
news:89C2D762-17D5-482D-A719-9A077C64392B@.microsoft.com...
> How does the number of objects (specifically tables) affect overall
> performance of SQL Server?
> Does SQL Server slow down as more objects are added - even if the overall
> data size remains relatively the same?
> How significant is this slowdown? Is it noticible after thousands of
> objects, millions, etc?

Number of Objects and Performance

How does the number of objects (specifically tables) affect overall
performance of SQL Server?
Does SQL Server slow down as more objects are added - even if the overall
data size remains relatively the same?
How significant is this slowdown? Is it noticible after thousands of
objects, millions, etc?No, there's no direct correlation between number of tables and server
performance. There may be a correlation between number of tables used per
query and performance, however -- generally speaking, the more joins in a
query, the worse it tends to perform (again, generalizing a bit here -- that
is certainly not always the case.)
Adam Machanic
Pro SQL Server 2005, available now
http://www.apress.com/book/bookDisplay.html?bID=457
--
"Sierra" <Sierra@.discussions.microsoft.com> wrote in message
news:89C2D762-17D5-482D-A719-9A077C64392B@.microsoft.com...
> How does the number of objects (specifically tables) affect overall
> performance of SQL Server?
> Does SQL Server slow down as more objects are added - even if the overall
> data size remains relatively the same?
> How significant is this slowdown? Is it noticible after thousands of
> objects, millions, etc?

Number of Objects and Performance

How does the number of objects (specifically tables) affect overall
performance of SQL Server?
Does SQL Server slow down as more objects are added - even if the overall
data size remains relatively the same?
How significant is this slowdown? Is it noticible after thousands of
objects, millions, etc?
No, there's no direct correlation between number of tables and server
performance. There may be a correlation between number of tables used per
query and performance, however -- generally speaking, the more joins in a
query, the worse it tends to perform (again, generalizing a bit here -- that
is certainly not always the case.)
Adam Machanic
Pro SQL Server 2005, available now
http://www.apress.com/book/bookDisplay.html?bID=457
"Sierra" <Sierra@.discussions.microsoft.com> wrote in message
news:89C2D762-17D5-482D-A719-9A077C64392B@.microsoft.com...
> How does the number of objects (specifically tables) affect overall
> performance of SQL Server?
> Does SQL Server slow down as more objects are added - even if the overall
> data size remains relatively the same?
> How significant is this slowdown? Is it noticible after thousands of
> objects, millions, etc?

Wednesday, March 21, 2012

Number of indexes can affect performance event in nearly read-only table?

I have a table with something like 4.000.000 rows, but only once per
day about 200 rows are inserted by an application, running as a
scheduled job.
So few writes per day are performed, but many reads are executed.
We have on this table 1 clustered index and 5 non-clustered indexes:
this is because the queryes applied to this table are very different,
and we have to use very different indexes.
Could the number of indexes affect performance, even if this is mainly
a read-only table?
Is there a 'maximum' number of indexes suggested for such large tables,
or i can build as many indexes as i want, nearly one for each 'where'
clause applied to the table?
Thnx i.a. for the answer
MarcoM. Simioni (m.simioni@.gmail.com) writes:
> Could the number of indexes affect performance, even if this is mainly
> a read-only table?
> Is there a 'maximum' number of indexes suggested for such large tables,
> or i can build as many indexes as i want, nearly one for each 'where'
> clause applied to the table?
The maximum number of tables is 250 if memory serves.
Can the number of index on a read-only table affect performance negatively?
Yes, from two different angles: 1) the optimizer gets more choices, and it
can take longer time to build the query plan. 2) the optimizer can pick an
index which it shouldn't. None of these issues should be given too much
weight. Most of the time the compilation time for a query is worth the
wait. And it's only occasionally the optimizer picks the wrong index. (But
I ran into that yesterday, when a customer got a problem with running a
stored procedure, and all that had happened was that I had added an index
to a table.)
So, if you feel that your table could benefit from more indexes, just do
adding them.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Wednesday, March 7, 2012

Null values.

Hi,
my db allows too many null values...i can't do anything to make them not nu
ll as most of the fields can be NULL..
will it affect any performance on my server..and if yes then is there any me
thod where we can avoid the degrading of performance causing by NULL values.
2) doest NULL values really affect server performance.
regards
sanjayNULL is handles like a value in SQL Server. so it doesn't affect performance
any differently compared to if you had an actual value in the column (except
for variable length columns where the NULL "value" only uses space in the
null map in the row layout compared to a real varchar value which is stored
in the row).
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=...ublic.sqlserver
"sanjay" <anonymous@.discussions.microsoft.com> wrote in message
news:5556A9CC-C2C3-4900-AB37-C81EB2723A7B@.microsoft.com...
> Hi,
> my db allows too many null values...i can't do anything to make them not
null as most of the fields can be NULL..
> will it affect any performance on my server..and if yes then is there any
method where we can avoid the degrading of performance causing by NULL
values.
> 2) doest NULL values really affect server performance.
> regards
> sanjay
>

Null values.

Hi
my db allows too many null values...i can't do anything to make them not null as most of the fields can be NULL.
will it affect any performance on my server..and if yes then is there any method where we can avoid the degrading of performance causing by NULL values
2) doest NULL values really affect server performance
regard
sanjaNULL is handles like a value in SQL Server. so it doesn't affect performance
any differently compared to if you had an actual value in the column (except
for variable length columns where the NULL "value" only uses space in the
null map in the row layout compared to a real varchar value which is stored
in the row).
--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"sanjay" <anonymous@.discussions.microsoft.com> wrote in message
news:5556A9CC-C2C3-4900-AB37-C81EB2723A7B@.microsoft.com...
> Hi,
> my db allows too many null values...i can't do anything to make them not
null as most of the fields can be NULL..
> will it affect any performance on my server..and if yes then is there any
method where we can avoid the degrading of performance causing by NULL
values.
> 2) doest NULL values really affect server performance.
> regards
> sanjay
>