MIS/CS 43 Lecture Notes: Thursday, 5/1/2003

I. Complete discussion of Chapter 14: Transaction Processing

We know the importance of concurrency, and problems that can arise. The resolution of the problem involves locks. We consider:

II. Complete discussion of Chapter 13: Query Processing/Optimization

We recall that the query optimization process consists of these steps:

  1. Enumerate the query plans.
  2. Estimate the costs of the plans.
  3. Choose the best plan for the query.
In order to create query plans, the approach is to translate the SQL into relational algebra, then use some identities from linear algebra to reorganize the expression. The query optimizer uses some heuristics to generate the most promising. We look at an example query, and three equivalent expressions, in the form of expression trees.