05 Optimization Flashcards

1
Q

Estimation selectivity constant attribute selection

A

sel(att=constant)=1/|att|

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

Estimation selectivity range selection

A

sel(att in Range)=|range|/|att|

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

Estimation selectivity select AND

A

sel(p1 AND p2)=sel(p1) * sel(p2)

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

Estimation selectivity select OR

A

sel(P1 OR p2)=sel(p1)+sel(p2)-sel(p1)*sel(p2)

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

Estimation selectivity join with primary key R.a and foreign key S.b

A

sel(R j S)=|S|/(|R|*|S|)

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

Estimation selectivity join R.a and S.b without foreign key

A

sel(R j S)=1/max(|a|, |b|)

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

Estimate output size selection

A

|select_p(R)|=|R|*sel(p)

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

Estimate output size join

A

|R j S|=|R||S|sel(R j S)

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