Query Processing Flashcards
A system catalog stores _________
metadata
What is metadata?
Information that describes the data that is managed
Metadata and statistics about the DB are used to find the best way to _______ a query
evaluate
Metadata for tables include what?
Table name Filename File structure Attribute names Attribute types Name of indexes Integrity constraints
Metadata for indexes include
Index name
Index Structure
Attributes of search key
Statistics for tables include
Cardinality
Size
Statistics for indexes include
Index Cardinality
Index Size
Index Height
Index Range
Declarative queries are translated into a _______ ________ to be executed
procedural language
Query evaluation plans are represented as trees of ______ ________
relational operators
An ______ _____ is way in which the rows of a table can be retrieved
Access path
An access path consists of an _____ plus a _________ selection condition
index, matching
A hash index matches conditions if there are only ______ in the conjunct
equalities
A tree index matches conditions for any _________ operator
comparison
The most selective access path retrieves the ______ pages
fewest
_______ depends on the conjunct in index matches
selectivity