04_11 Database Performance Tuning & Query Optimization Flashcards

1
Q

A set of instructions generated at application compilation time that is created and managed by a DBMS.

A

access plan

The access plan predetermines how an application’s query will access the database at run time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A method by which a DBMS finds the most efficient access path for the execution of a query.

A

automatic query optimization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An index that uses a bit array to represent the existance of a value or condition.

A

bitmap index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An ordered data structure organized as an upside-down tree.

A

B-tree index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A shared, reserved memory area that stores the most recently accessed data blocks in RAM.

A

data cache (buffer cache)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In a DBMS

A type of table storage organization that stores end-user data and index data in consecutive locations in permanent storage.

A

index organized table (cluster-indexed table)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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.

A

cost-based optimizer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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.

A

database performance tuning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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.

A

database statistics

Such statistics provide a snapshot of database characteristics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A column distribution of values or the number of different values a column can have.

A

data sparsity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Activities to ensure that clients’ requests are addressed as quickly as possible while making optimum use of existing resources.

A

DBMS performance tuning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The process of determining the SQL access strategy at run time.

Uses the most up-to-date information about the database.

A

dynamic query optimization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In a DBMS

The capability to automatically evaluate and update the database access statistics after each data access operation.

A

dynamic statistical generation mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In a DBMS environment

Refers to the ability of data files to expand in size automatically using predefined increments.

A

extents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In a DBMS

A logical storage space used to group related data.

A

tablespace (file group)

17
Q

A type of index based on a specific SQL function or expression.

A

function-based index

18
Q

An index based on an ordered list of hash values.

A

hash index

19
Q

A database optimized to store large portions (if not all) of the database in primary (RAM) storage rather than secondary (disk) storage.

A

in-memory database

20
Q

A measure of how likely an index is to be used in query processing.

A

index selectivity

21
Q

A low-level data access operation that reads or writes data to and from computer devices.

A

input/output (I/O) request

22
Q

A device used to improve throughput for I/O operations.

A

input/output (I/O) accelerator

23
Q

An operation mode that requires the end user or programmer to define the access path for the execution query.

A

manual query optimization

24
Q

Special instructions for the query optimizer that are embedded inside the SQL command text.

A

optimizer hints

25
Q

A shared, reserved memory area that stores the most recently executed SQL statements or PL/SQL procedures.

Includes triggers and functions

A

SQL cache (procedure cache)

26
Q

A DBMS process that analyzes SQL queries and finds the most efficient way to access the data.

A

query optimizer

The query optimizer generates the access or execution plan for the query.

27
Q

In query optimization

A delay introduced in the processing of an I/O operation that causes the overall system to slow down.

A

query processing bottleneck

28
Q

A system that uses multiple disks to create virtual disks (storage volumes) from several individual disks.

A

Redundant Array of Independent Disks (RAID)

RAID systems provide performance improvement, fault tolerance, and a balance between the two.

29
Q

A query optimization mode based on the rule-based query optimization algorithm.

A

rule-based optimizer

30
Q

A query optimization technique that uses preset rules and points to determine the best approach to executing a query.

A

rule-based query optimization algorithm

31
Q

A query optimization mode in which the access path to a database is predetermined at complition time.

A

static query optimization

32
Q

A query optimization technique that uses statistical information about a database.

The DBMS then uses these statistics to determine the best access strategy.

A

statistically based query optimization algorithm

33
Q

Activities to help generate a SQL query that returns the correct answer in the least amount of time, using the minimum amount of resources at the server end.

A

SQL performance tuning