14.02.2014 Views

Query Processing and Optimization

Query Processing and Optimization

Query Processing and Optimization

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Joins<br />

• Join Strategies<br />

• Nested loop join<br />

• Index-based join<br />

• Sort-merge join<br />

• Hash join<br />

• Strategies work on a per block (not per record) basis.<br />

• Need to estimate #I/Os (block retrievals)<br />

• Relation sizes <strong>and</strong> join selectivities impact join cost.<br />

• <strong>Query</strong> selectivity = #tuples in result / #c<strong>and</strong>idates<br />

<br />

‘More selective’ means smaller ‘selectivity value’<br />

• For join, #c<strong>and</strong>idates is the size of Cartesian product<br />

9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!