Solved

Performance

Posted on 2011-03-14
8
463 Views
Last Modified: 2012-06-21
What kind of issues can cause performance problems in the database tier of a web app driven by a MS-SQL database?

Are there any tools (ideally free) that can identify the root cause of such performance issues, if yes can you please detail?

Out of interest if a web app or maybe even an internal intranet app goes sluggish is it typically a result of an issue in the db tier, or elsewhere?
0
Comment
Question by:pma111
  • 4
  • 4
8 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 125 total points
ID: 35128466
Are you performing regular maintenance on the database?  Reindexing, updating of statistics, backups?
0
 
LVL 3

Author Comment

by:pma111
ID: 35128533
Not being a DBA myself, can you let me know how...

reindexing
updating of statistics
backups

...affect performance.... and how someone could check if it is or is not being done?
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 35128570
Reindexing organizes the data in the database to make searching it faster.
Updating statistics helps SQL Server to determine ABOUT how many records exist in a table or index.
Backups are necessary and if you have the database in full recovery mode without doing transaction log backups then the log will fill forever.

0
 
LVL 3

Author Comment

by:pma111
ID: 35128611
I know there is the sql server best practices analyzer, does that identify if this sort of thing is being done or not? And does it only report on things that are essentially risks - or other stuff too?
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 35128679
I don't know.  I've never used it.
0
 
LVL 3

Author Comment

by:pma111
ID: 35128715
no worries.

on the comment:

Updating statistics helps SQL Server to determine ABOUT how many records exist in a table or index.

What is the real risk if you dont do this? Excuse my ignorance on statistics its not a concept I am familair with
0
 
LVL 3

Author Comment

by:pma111
ID: 35128724
I assume a process whereby re-indexing takes place on routine basis is more beneficial on larger databases? What is your recommendation on how often to reindex?
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 35128733
Statistics is what SQL Server uses to help determine the best query plan.  If SQL Server expects a particular table and criteria to return 5 rows, but instead it returns 5000, then the join type that it uses in the query may be completely wrong.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now