DATA3404 Lecture Notes - Lecture 6: Relational Algebra, Memory Stick, Multi-Core Processor

76 views4 pages

Document Summary

Types of joins: theta join: rows from r and s combine if some condition is true, equi-join: rows from r and s combine if specified attributes match in value, e. g. Theta and equi join repeat tuples with same name, but natural join does not repeat. Indexed nested loop join - use index to avoid searching whole of second table. S tuples for one tuple of r c can be estimated as cost of a single selection on s using the join condition. , rn denote partitions of r tuples: each tuple r r is put in partition ri where i = h(r[joinattrs]), s0, s1. In matching phase, read both relations: br+bs i/os: total cost = 3(br+bs) Also, hash join shown to be highly parallelizable: sort-merge less sensitive to data skew; result is sorted. cost estimate: # of i/os. Issue 1: minimize synchronization => avoid taking latches during execution.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents