





















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















































































Kien A. Hua
School of Computer Science University of Central Florida Orlando, FL 32816-
Topics
EXECUTOR (3)
STORAGE MANAGER (2)
HARDWARE (1)
(4)
QUERY OPTIMIZATION
PROCESS STRUCTURE
Results Queries
* Parallelizing QueryOptimization Techniques
* Parallel Algorithms
* Data PlacementStrategies
* Parallel Architectures
COMMERCIAL SYSTEMS (5)
Relational Data Mo del
0005 John Smith Orlando
EMP# NAME ADDR
A relation (table)
An attribute (column)
A tuple (row)
columns.
captured in these tables.
Relational Op erator: SCAN
SELECT NAME FROM EMPLOYEE WHERE ADDR = \Orlando";
PROJECT(NAME)
NAME Jane Doe John Smith
0002 Jane Doe Orlando 0005 John Smith Orlando
EMP# NAME ADDR
SELECT (ADDR=Orlando)
0005 John Smith Orlando
EMP# NAME ADDR 0002 Jane Doe Orlando
SCAN
Hash-Based Join
EMPLOYEE: EMP#^ NAME^ ADDR^ PROJECT: ENUM^ PROJ^ DEPT
JOIN JOIN JOIN JOIN
0004
0004 0008
E0 P0 E1 P1 E2 P2 E3 P
EMP_PROJ_0 EMP_PROJ_1 EMP_PROJ_2 EMP_PROJ_
(^0004 )
HASH:(EMP#) = EMP# mod 4 HASH(ENUM) = ENUM mod 4‘
Examples: 0 mo d 4 = 0 4 mo d 4 = 0 1 mo d 4 = 1 5 mo d 4 = 1 2 mo d 4 = 2 6 mo d 4 = 2 3 mo d 4 = 3 7 mo d 4 = 3
Bucket Sizes and I/O Costs
Bucket A Bucket B
Memory One tuple at a time
Bucket B do es not t in the memory in its entirety. It must b e loaded several time.
Memory
Bucket A(1)
Bucket A(2)
Bucket A(3)
Bucket B(2)
Bucket B(3)
LOAD
One tuple at a time Bucket B(1)
Bucket B ts in the memory. It needs to b e loaded only once.
Barriers to Parallelism
Startup:
The time needed to start a paral lel operation (thread creation/connection overhead) may dominate the actual computation time.
Interference:
When accessing shared resources, each new process slows down the others (hot spot problem).
Skew:
The response time of a set of paral lel processes is the time of the slowest one.
The Challenge