Selection Overview

COMP9315 21T1 ♢ Selection ♢ [0/6]
❖ Varieties of Selection

Selection:   select * from R where C

We consider three distinct styles of selection: Each style has several possible file-structures/techniques.
COMP9315 21T1 ♢ Selection ♢ [1/6]
❖ Varieties of Selection (cont)

Selection returns a subset of tuples from a table

[Diagram:Pics/select/matching.png]

In the diagram, rq = 8,   bq = 5

COMP9315 21T1 ♢ Selection ♢ [2/6]
❖ Varieties of Selection (cont)

Different categories of selection queries:

one ... queries with at most 1 result ...   0 ≤ rq ≤ 1,   0 ≤ bq ≤ 1

pmr ... partial match retrieval ...   0 ≤ rqr,   0 ≤ bq ≤ b+bov
COMP9315 21T1 ♢ Selection ♢ [3/6]
❖ Varieties of Selection (cont)

More categories of selection queries:

rng ... range queries ...   0 ≤ rqr,   0 ≤ bq ≤ b+bov

pat ... pattern-based queries ...   0 ≤ rqr,   0 ≤ bq ≤ b+bov
COMP9315 21T1 ♢ Selection ♢ [4/6]
❖ Varieties of Selection (cont)

More categories of selection queries:

sim ... similarity matching ... in theory, rq = r   ... everything matches to some degree


We focus on one, pmr and rng queries, but will discuss others
COMP9315 21T1 ♢ Selection ♢ [5/6]
❖ Implementing Select Efficiently

Two basic approaches:

Our analysis assumes 1 input buffer available for each relation.

If more buffers are available, most methods benefit.

COMP9315 21T1 ♢ Selection ♢ [6/6]


Produced: 6 Mar 2021