Query Optimization & Conclusion Flashcards

1
Q

What are the steps in query processing

A

1.Query
2. Parsor and translator
3. Relational algebra expression
4. Optimiser
5. Execution plan
6. Evaluation engine
7. Query output

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

What are evaluation plans?

A

For the same sql query, there are many ways to achieve the same result. Each way is called an evaluation plan

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

What is query optimisation?

A

Choosing the evaluation plan with least cost among all equivalent evaluation plans

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

What could be thought of as cost to a query ?

A

Cost is generally measured as total time elapsed for answering query
Factors of time cost : Disk accesses, CPU or even network communication .
Typically , predominant cost is disk access.

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

How is disk access cost measured?

A

Number of seems *average week cost
Number of blocks read *average block-read cost
Number of block written *average block write cost

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

Which cost is bigger ? Cost to read or cost to write disk ?

A

Cost to write is bigger as after writing disk .. contents have to be read back for confirmation

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