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.

Cost <strong>and</strong> Applicability of Join Strategies<br />

• Nested-loop join<br />

• Brute-force<br />

• Can h<strong>and</strong>le all types of joins (=, )<br />

• Index-based join<br />

• Requires minimum one index on join attributes<br />

• Sort-merge join<br />

• Requires that the files are sorted on the join attributes.<br />

• Sorting can be done for the purpose of the join.<br />

• A variation is also applicable when secondary indices are<br />

available instead.<br />

• Hash join<br />

• Requires good hashing functions to be available.<br />

• Performance best if smallest relation fits in memory. ?<br />

25

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

Saved successfully!

Ooh no, something went wrong!