Question

In: Computer Science

What is database tuning? Explain some of the tuning methods used by DBAs to improve performance....

  1. What is database tuning? Explain some of the tuning methods used by DBAs to improve performance.
  2. What types of things affect performance of a database? Explain how those things are identified and managed.
  3. Explain database statistics and why they are important. How do you obtain database statistics?

Solutions

Expert Solution

Database tuning:

It refers to different activities that help in optimizing the database performance by homogenizing different tasks. The focus here is to maximize the system resource use and make the work be done in an efficient manner and rapidly.

Methods for database tuning:

1. Statistics collection:

This one is a very common and most important way to tune databases. In this approach statistics are generated by estimating the cost of plan for execution. All the activities are performed by DBA on a regular basis using the data about schema objects.

2. Optimization:

This method is used with queries. The execution decision for queries is made as per the data gathered from statistics. The optimizer helps in determining the optimal plan in the given environment for statements.

3. Index management:

It is important to know if index is used or full scan selection is used. Indexing improves database performance but it is important to understand if the right kind of index has been used or not. The indexes have been used to improve the overall performance tremendously.

Things that affect database's performance and their management:

1. Workload:

The workload that has been requested from the database helps in defining the demands from it. It includes batch jobs, online transactions, temporary queries, etc. There are also certain utilities that affect the workload. It also fluctuates from time to time and can be predicted based on the monthly or weekly processing of data.

2. Throughput:

It refers to the overall capability to process data by the system. For a database to have good throughput, it is essential that the operating system and processor work well. It includes I/O speed, parallel capabilities, CPU speed, etc. It can't be based on predictions or assumptions, it depends on the capacity figures.

3. Resources:

The resources refer to the software and hardware devices and tools used with the database. It can also be disk, microcode, memory, cache controllers, etc. It affects the optimization and performance of the database. One can ensure the best performance by making sure that resources are up to date.

4. Contention:

It occurs when the workload is more. It is the condition where attempts are made to access one resource by many components. Due to the conflict in the access capabilities the workload is affected as well. To prevent it one can use a locking mechanism for the database queries. When one resource is used by one component, it can be locked so that it is not used by any other.

Database statistics:

These are used for analysis purposes. It is also used in online analytical processing. It is all about collecting data regarding database objects. It can be tables, processors, indexes, processor speed, space, memory available, etc. It helps in understanding the system performance and how it can be optimized.

Importance of database statistics:

There are so many decisions made by DBA and the database itself as per the statistics. Cost based scenarios and optimizers make use of a lot of information about database objects to arrive at a specific decision. These statistics help in designing algorithms and offering all kinds of best options for the queries.

Ways to obtain database statistics:

Database statistics can be obtained by DBA manually or by DBMS automatically. There are many DBMS vendors that help in analysing SQL commands and collect statistics. They offer their own routines to find statistics. Some make use of surveys, observations, experiments, etc. It can also be obtained by focus groups, interviews, and case studies.


Related Solutions

Identify some bottlenecks in DBMS performance and propose some solutions used in DBMS performance tuning. Provide...
Identify some bottlenecks in DBMS performance and propose some solutions used in DBMS performance tuning. Provide your recommendations and discuss some industry best practices.
1. Explain how the physical design of a database influences performance tuning. 2.Explain three ways queries...
1. Explain how the physical design of a database influences performance tuning. 2.Explain three ways queries can be altered to increase database performance. 3. Present specific examples to illustrate how implementing each query alteration could optimize the database.
1.write about your plan for the database performance tuning, query optimization, and distributed database management systems.  Include...
1.write about your plan for the database performance tuning, query optimization, and distributed database management systems.  Include appropriate diagrams.
Explain which methods can be used for tuning PID controllers. Principles / advantages / disadvantages etc.
Explain which methods can be used for tuning PID controllers. Principles / advantages / disadvantages etc.
Hydrogen is used in some semiconducting devices to improve their performance. Consider a material in which...
Hydrogen is used in some semiconducting devices to improve their performance. Consider a material in which atomic hydrogen (H) diffuses at 1.8 × 10-24 m2/s at 329 K. 1) When in use, the device is exposed to a large electric field. If the force on each charged hydrogen nucleus is 10 -11 N, use the fluctuation-dissipation relation to find out how fast they drift in the field at 329 K.
What are some marketing tools to improve product and brand performance?
What are some marketing tools to improve product and brand performance?
2. Describe two methods of “tuning” the performance of a controller/compensator. Comment on key benefits and...
2. Describe two methods of “tuning” the performance of a controller/compensator. Comment on key benefits and drawbacks of each method.
What is the DuPont formula and how is it used to improve a firm’s financial performance?
What is the DuPont formula and how is it used to improve a firm’s financial performance?
Compare and contrast the Ziegler-Nichols and the Pessen tuning methods. Explain their advantages and drawbacks.
Compare and contrast the Ziegler-Nichols and the Pessen tuning methods. Explain their advantages and drawbacks.
IF–THEN rules can be used for classification. What are some performance measures that can be used...
IF–THEN rules can be used for classification. What are some performance measures that can be used to evaluate the accuracy of the rule, and how do these measures differ? What are the advantages and limitations of each performance measure? You should compare at least two performance measures for evaluating the performance of an IF–THEN rule.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT