Query Optimization Flashcards

1
Q

Query optimization is conducted by DBMSs to select the _____ strategy for executing the query

A

best

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

What is a query plan?

A

Relational algebra tree extended with annotations

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

The annotations in a query plan tell which ______ ____ to use for each table and which ____________ _____ to use for each operator

A

access path, implementation method

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

What are the 3 steps in query optimization?

A
  1. Enumerate alternative plans
  2. Estimating the costs
  3. Choosing the plan
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In pipelining, the results of an _________ is passed directly to the next

A

operator

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

In materialization, the intermediate result is written to a temp _____

A

table

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

The iterator interface hides the internal __________ ______ of each operator

A

implementation details

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