04_11 Database Performance Tuning & Query Optimization Flashcards
A set of instructions generated at application compilation time that is created and managed by a DBMS.
access plan
The access plan predetermines how an application’s query will access the database at run time.
A method by which a DBMS finds the most efficient access path for the execution of a query.
automatic query optimization
An index that uses a bit array to represent the existance of a value or condition.
bitmap index
An ordered data structure organized as an upside-down tree.
B-tree index
A shared, reserved memory area that stores the most recently accessed data blocks in RAM.
data cache (buffer cache)
In a DBMS
A type of table storage organization that stores end-user data and index data in consecutive locations in permanent storage.
index organized table (cluster-indexed table)
A query optimization mode that uses an algorithm based on statistics about the object being accessed.
Includes number of rows, indexes available, index sparsity, etc.
cost-based optimizer
A set of activites and procedures designed to reduce the response time of a database system.
Ensures that an end-user query is processed by the DBMS in the minimum amount of time.
database performance tuning
In query optimization
Measurements about database objects.
Number of rows in a table, number of disk blocks used, maximum and average row length, number of columns in each row, and number of distict values in each column.
database statistics
Such statistics provide a snapshot of database characteristics.
A named physical storage space that stores a database’s data.
It can reside in a different directory on a hard disk or on one or more hard disks.
data file
AI data in a database is stored in data files. A typical enterprise database is normally composed of several data files. A data file can contain rows from one or more tables.
A column distribution of values or the number of different values a column can have.
data sparsity
Activities to ensure that clients’ requests are addressed as quickly as possible while making optimum use of existing resources.
DBMS performance tuning
The process of determining the SQL access strategy at run time.
Uses the most up-to-date information about the database.
dynamic query optimization
In a DBMS
The capability to automatically evaluate and update the database access statistics after each data access operation.
dynamic statistical generation mode
In a DBMS environment
Refers to the ability of data files to expand in size automatically using predefined increments.
extents