database monitoring and performance management

8
Advanced Database Systems Why Database Performance is Important? Database can make or break the business operations. Creating a plan is a good start in improving database performance. One of the most basic of ways of * Property of STI Page 1 of 8 Database Monitoring and Performance Management One of the most basic of ways of improving performance is to have a good schema design.

Upload: anne-lee

Post on 17-Feb-2017

242 views

Category:

Data & Analytics


2 download

TRANSCRIPT

Advanced Database Systems

Why Database Performance is Important?

� Database can make or break the

business operations.

� Creating a plan is a good start in

improving database performance.

� One of the most basic of ways of

* Property of STIPage 1 of 8

Database Monitoring and Performance Management

� One of the most basic of ways of

improving performance is to have a

good schema design.

Advanced Database Systems

Performance Analysis Tools

� A variety of tools are available to

help you analyze and monitor the

current performance of your

Adaptive Server Anywhere

database.

� Request-level logging

* Property of STIPage 2 of 8

Database Monitoring and Performance Management

� Request-level logging

� Index Consultant

� Procedure Profiling

� Graphical Plan

� Performance Monitor

� Concurrency

Advanced Database Systems

Performance Analysis Tools

� Request-level logging

� Request level logging logs

individual requests received

from and responses sent to an

application.

� Index Consultant

* Property of STIPage 3 of 8

Database Monitoring and Performance Management

� Index Consultant

� The Index Consultant

recommends indexes that can

help improve performance for

large workloads or complex

queries.

Advanced Database Systems

Performance Analysis Tools

� Procedure Profiling

� Procedure profiling shows how

long it takes the stored

procedures, functions, events,

and triggers to execute.

� Graphical Plan

* Property of STIPage 4 of 8

Database Monitoring and Performance Management

� Graphical Plan

� The graphical plan feature in

Interactive SQL displays the

execution plan for a query. It is

useful for diagnosing

performance issues with specific

queries.

Advanced Database Systems

Performance Analysis Tools

� Performance Monitor

� The Performance Monitor is

useful for tracking detailed

information about database

server actions, including disk

and memory access.

* Property of STIPage 5 of 8

Database Monitoring and Performance Management

� Concurrency

� When the database server

processes a transaction, it can

lock one or more rows of a table.

The locks maintain the

reliability of information stored

in the database by preventing

concurrent access by other

transactions.

Advanced Database Systems

Performance Tips

� The following tips will help you

achieve the maximum performance

from Adaptive Server Anywhere:

� Always use a transaction log

� Increase the cache size

� Normalize your table structure

� Use indexes effectively

* Property of STIPage 6 of 8

Database Monitoring and Performance Management

� Use indexes effectively

� Place different files on different

devices

� Turn off autocommit mode

� Reduce the number of requests

between client and server

� Reduce table widths

� Reduce primary key width

Advanced Database Systems

Performance Tips

� Declare constraints

� Use appropriate data types

� Use AUTOINCREMENT to create

primary keys

� Minimize cascading referential

actions

� Pay attention to the order of

* Property of STIPage 7 of 8

Database Monitoring and Performance Management

� Pay attention to the order of

columns

� Upgrade to take advantage of

new features

� Rebuild your database

� Examine your database and

server configurations

� Use an appropriate page size

Advanced Database Systems

Performance Tips

� Examine file, table, and index

fragmentation

� Acquire adequate hardware

� Choose the Optimizer’s priority

� Consider collecting statistics on

small tables

� Use user-estimates sparingly

* Property of STIPage 8 of 8

Database Monitoring and Performance Management

� Use user-estimates sparingly

� Reduce expensive user-defined

functions

� Using the cache to improve

performance

� Using indexes to improve

performance

� Using keys to improve query

performance