0% found this document useful (0 votes)
74 views7 pages

Database Management Systems: BITS Pilani

Database tuning involves revising the physical database design after deployment based on actual usage statistics to improve performance. It aims to make applications run faster and lower response times. Approaches for database tuning include tuning indexes by adding, dropping, or modifying indexes, tuning the database design through denormalization and partitioning, and tuning queries to better utilize indexes.

Uploaded by

Sneha Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views7 pages

Database Management Systems: BITS Pilani

Database tuning involves revising the physical database design after deployment based on actual usage statistics to improve performance. It aims to make applications run faster and lower response times. Approaches for database tuning include tuning indexes by adding, dropping, or modifying indexes, tuning the database design through denormalization and partitioning, and tuning queries to better utilize indexes.

Uploaded by

Sneha Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 7

Database Management

Systems

Prof.R.Gururaj
BITS Pilani CS&IS Dept.
Hyderabad Campus
Database Tuning
(Lecture Session-21)
Content
Introduction to database tuning
Significance of database tuning
 Approaches for database tuning

1 Database Management Systems Prof.R.Gururaj BITS Pilani, Hyderabad Campus


Database Tuning
Physical design is an activity where the goal is not only to
create the appropriate structuring of data in storage but to do
so in a way that guarantees good performance.
Factors that affect physical database design:
Analyzing the database queries and transactions- files
required, attributes used in selection, select condition type,
join attributes, result attributes etc. Similarly for update
operations also we analyze the request.
Analyzing the expected frequency on invocation of queries
and transactions.
Analyzing the time constraints of queries and transactions.
Analyzing the expected frequency of updates.
Analyzing the uniqueness constraints on the attributes

2 Database Management Systems Prof.R.Gururaj BITS Pilani, Hyderabad Campus


Physical Database Design
Decisions

Indexing:

Whether to index an attribute (key or attribute used in


selection or join condition)
What attribute or attributes to index (multiple attribues may
be indexed if used in queries)
Whether to set up a clustered index (for range queries
advisable)
Whether use hash index over a tree index (B+ trees support
both equality and range; hash indexes support only equality
conditions)
Whether to use dynamic hashing.

3 Database Management Systems Prof.R.Gururaj BITS Pilani, Hyderabad Campus


Database Tuning

Revising the physical database design decisions after


the deployment, based on the actual statistics about
the use of applications, queries, transactions and
views, is called as database tuning.

Goals:
To make applications run faster
To lower the response time for queries and
transactions
To improve the overall throughput

4 Database Management Systems Prof.R.Gururaj BITS Pilani, Hyderabad Campus


Tuning options:
Tuning indexes: We may need new indexes.
Or we may need to drop some less frequently
used indexes. We may also need to drop
indexes on files that undergo heavy changes.
Tuning the database design:
Denormalization, partitioning
Tuning Queries: to make queries to use
indexes

5 Database Management Systems Prof.R.Gururaj BITS Pilani, Hyderabad Campus


Summary
 What is database tuning and its
importance
How tuning is done
Tuning DB design
Tuning indexing structures etc.

6 Database Management Systems Prof.R.Gururaj BITS Pilani, Hyderabad Campus

You might also like