2021/4/28 Query Processing
Query Processing
Query Processing Terminology Variations
>>
COMP9315 21T1 ♢ Query Processing ♢ [0/6]
https://cgi.cse.unsw.edu.au/~cs9315/21T1/lectures/qry-processing/slides.html 1/8
2021/4/28 Query Processing
❖ Query Processing
∧ >>
COMP9315 21T1 ♢ Query Processing ♢ [1/6]
https://cgi.cse.unsw.edu.au/~cs9315/21T1/lectures/qry-processing/slides.html 2/8
2021/4/28 Query Processing
❖ Query Processing (cont) A query in SQL:
states what kind of answers are required (declarative) does not say how they should be computed (procedural)
A query evaluator/processor : takesdeclarativedescriptionofquery (inSQL)
parsesquerytointernalrepresentation (relational algebra)
determinesplanforansweringquery (expressedasDBMS ops)
executesmethodviaDBMSengine (toproduceresult tuples)
Some DBMSs can save query plans for later re-use.
COMP9315 21T1 ♢ Query Processing ♢ [2/6]
<< ∧ >>
https://cgi.cse.unsw.edu.au/~cs9315/21T1/lectures/qry-processing/slides.html 3/8
2021/4/28 Query Processing
<< ∧ >>
❖ Query Processing (cont)
Internals of the query evaluation “black-box”:
COMP9315 21T1 ♢ Query Processing ♢ [3/6]
https://cgi.cse.unsw.edu.au/~cs9315/21T1/lectures/qry-processing/slides.html 4/8
2021/4/28 Query Processing
❖ Query Processing (cont)
DBMSs provide several “