You are here: Re: Database optymalization(??) « MsSQL Server « IT news, forums, messages
Re: Database optymalization(??)

Posted by Erland Sommarskog on 10/16/55 11:31

ROAN (roan@autograf.pl) writes:
> And there is a problem... all indexes are the same(definition) in every
> datatabase, the difference is only in data. So i dont think there is a
> problem.
> I will be looking slow queries...
> But i still waiting for some aditional advices...

Statistics are not likely to be the same, as the databases are of different
sizes. And they can be out of date (even if SQL Server maintains statistics
automatically).

You can also be victim to fragmentation. A DBCC SHOWCONTIG on key tables
can reveals this. Reindexing will also fix statistics.

Also keep in mind that the optimizer determines the query plan from
*estimates* and estimates can be wrong for one reason or another. Sometimes
even if statistics are correct.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация