Q51646 Write a note on Creation of Query Evaluation Plans.

Answer:

Generation of query-evaluation plans for an expression involves several steps:

  1. Generating logically equivalent expressions using equivalence rules
  2. Annotating resultant expressions to get alternative query plans
  3. Choosing the cheapest plan based on estimated cost. The overall process is called cost based optimisation.

The cost difference between a good and a bad method of evaluating a query would be enormous. We would therefore, need to estimate the cost of operations and statistical information about relations. For example a number of tuples, a number of distinct values for an attribute etc. Statistics helps in estimating intermediate results to compute the cost of complex expressions.

ed010d383e1f191bdb025d5985cc03fc?s=120&d=mm&r=g

DistPub Team

Distance Publisher (DistPub.com) provide project writing help from year 2007 and provide writing and editing help to hundreds student every year.