




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A lecture note from Carnegie Mellon University (CMU) course 15-721 (Spring 2016) on Database Systems. The lecture, titled 'Join Algorithms (Sorting)', covers the topic of sorting and merge join algorithms in the context of database systems. agendas, diagrams, and references to related research papers.
Typology: Study notes
1 / 123
This page cannot be seen from the preview
Don't miss anything!
Andy Pavlo // Carnegie Mellon University // Spring 2016
DATABASE SYSTEMS
15-
TO DAY ’ S AG E N DA
S O R T- M E R G E J O I N ( R ⨝ S )
S O R T- M E R G E J O I N ( R ⨝ S )
S O R T- M E R G E J O I N ( R ⨝ S )
SORT!^ ⨝
S O R T- M E R G E J O I N ( R ⨝ S )
SORT!^ ⨝
I N - M E M O R Y J O I N S
SORT VS. HASH REVISITED: FAST JOIN IMPLEMENTATION ON MODERN MULTI VLDB 2009 - CORE CPUS
MASSIVELY JOINS IN MAIN MEMORY MULTI CORE DATABASE SYSTEMS VLDB 2012 PARALLEL SORT-MERGE-
MAIN MULTI UNDERLYING HARDWARE ICDE 2013 - MEMORY HASH JOINS ON-CORE CPUS: TUNING TO THE
Source: Cagri Balkesen
S I N G L E I N S T R U C T I O N , M U LT I P L E D ATA
S I M D E X A M P L E
n n xn y n
xx yy y
yy x
x ... x (^21) ... (^2121) ...^12
Z
S I M D E X A M P L E
n n xn y n
xx yy y
yy x
x ... x (^21) ... (^2121) ...^12
X for Z[i] = X[i] + Y[i]; (i=0; i<n; i++) { }
Y
Z
S I M D E X A M P L E
n n xn y n
xx yy y
yy x
x ... x (^21) ... (^2121) ...^12
X
for Z[i] = X[i] + Y[i]; (i=0; i<n; i++) {^ + }
Y
Z
S I M D E X A M P L E
n n xn y n
xx yy y
yy x
x ... x (^21) ... (^2121) ...^12
X
for Z[i] = X[i] + Y[i]; (i=0; i<n; i++) {^ + }
Y
Z
S I M D E X A M P L E
n n xn y n
xx yy y
yy x
x ... x (^21) ... (^2121) ...^12
X for Z[i] = X[i] + Y[i]; (i=0; i<n; i++) { }
Y
Z
S I M D E X A M P L E
n n xn y n
xx yy y
yy x
x ... x (^21) ... (^2121) ...^12
X for Z[i] = X[i] + Y[i]; (i=0; i<n; i++) { }
Y