Unix Technical Forum

Database optymalization(??)

This is a discussion on Database optymalization(??) within the SQL Server forums, part of the Microsoft SQL Server category; --> Hallo I need a help in optymalization database. My database is much slower than bigger databeses(the same structure, only ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 01:52 PM
ROAN
 
Posts: n/a
Default Database optymalization(??)

Hallo
I need a help in optymalization database. My database is much slower
than bigger databeses(the same structure, only data is different). The
porblem is that i can't interfer in the structure - can't change
procedures, view, select ect..

I dont have any ideas how to speed it up or where can be the problem.

I read some articles I but i still need more information.

Please send me some advices or links.

Greatings

Roan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 01:52 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Database optymalization(??)

ROAN (roan@autograf.pl) writes:
> I need a help in optymalization database. My database is much slower
> than bigger databeses(the same structure, only data is different). The
> porblem is that i can't interfer in the structure - can't change
> procedures, view, select ect..
>
> I dont have any ideas how to speed it up or where can be the problem.
>
> I read some articles I but i still need more information.


The first step is to gather information. Exactly which queries are
running slowly? Which query plans do they have? Could they benefit
from an index? If a certain query runs fine in the other database,
are there any differences in indexing?


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

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 01:52 PM
ROAN
 
Posts: n/a
Default Re: Database optymalization(??)


Erland Sommarskog napisal(a):
> ROAN (roan@autograf.pl) writes:
> > I need a help in optymalization database. My database is much slower
> > than bigger databeses(the same structure, only data is different). The
> > porblem is that i can't interfer in the structure - can't change
> > procedures, view, select ect..
> >
> > I dont have any ideas how to speed it up or where can be the problem.
> >
> > I read some articles I but i still need more information.

>
> The first step is to gather information. Exactly which queries are
> running slowly? Which query plans do they have? Could they benefit
> from an index? If a certain query runs fine in the other database,
> are there any differences in indexing?
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techinf...2000/books.asp


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...
Greatings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 01:52 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Database optymalization(??)

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/techinf...2000/books.asp

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com