More Cost Based Plan Selection, Joins




CS157b

Chris Pollett

Mar 13, 2023

Outline

Introduction

Estimating the Size of a Selection

Estimating the Size of a Join

Natural Joins with Multiple Join Attributes

Joins of Many Relations

Cost-Based Plan Selection

Obtaining Estimates for Size Parameters

Quiz

Which of the following statements is true?

  1. Computing nested loop joins always involves a sorting step.
  2. In the hashed-based, duplicate elimination algorithm we first hash the relation/file to buckets, then do duplicate elimination within each bucket.
  3. In our approach to parsing queries, the query pre-processor runs before the parser.

Incremental Computation of Statistics

Heuristics for Reducing the Cost of Logical Query Plans

Approaches to Enumerating Physical Plans

More on Enumerating Physical Plans

Join Order - Significance of Left and Right Join Arguments

Join Trees

Left-Deep Join Trees

Some Advantages of Left Deep Join Trees