Query Evaluation in CoDbs
Projection is easy if one slice contains all required attributes.
If not ...
- sequential scan of relevant slices in parallel
- combine values at each iteration to form a tuple
Example: select a,b,c from R(a,b,c,d,e)
for i in 0 .. N-1 {
x = a[i]
y = b[i]
z = c[i]
add (x,y,z) to Results
}
|
|