Lesson 05
Lesson 05
Lesson 05
SYSTEMS
ICT3273
Nuwan Laksiri
Department of ICT
Faculty of Technology
University of Ruhuna Lecture 05
WHAT WE DISCUSS TODAY ……..
• RECAP B+ TREE
• OVERVIEW
• MEASURES OF QUERY COST
• SELECTION OPERATION
• BASIC ALGORITHMS
• SELECTIONS USING INDICES
• SELECTIONS INVOLVING COMPARISONS
• IMPLEMENTATION OF COMPLEX SELECTIONS
NEXT WEEK
• QUERY PROCESSING PART II
• SORTING
• JOIN OPERATION
• OTHER OPERATIONS
• EVALUATION OF EXPRESSIONS
RECAP
• TREE
• M-WAY SEARCH TREE
• B TREE
• B TREE OPERATIONS
• B+ TREE
• INTRODUCTION
• BASICS
• STRUCTURE
• PROPERTIES
• OPERATIONS
• SEARCH
• INSERT
• DELETE
Query Processing
• Query processing
includes translation of high-level queries into low-level
expressions
that can be used
at the physical level of the file system,
query optimization and actual execution of the
query to get the result.
Basic Steps in Query Processing
• The basic steps involved in processing a query,
• Parsing and translation
• Optimization
• Evaluation
Query Processing
Query Parsing and Translation (Query
compiler)
cost???
Measures Of Query Cost
• Cost is generally measured as total elapsed time for
answering query
• Many factors contribute to time cost
• Access cost to secondary storage(disk accesses)
• Disk storage cost
• Computation cost(CPU cost)
• Memory usage cost
• Communication cost
Measures Of Query Cost
• Typically disk access is the predominant cost, and is also
relatively easy to estimate. Measured by taking into account,
• Number of seeks
* average-seek-cost
• Number of blocks read
* average-block-read-cost
• Number of blocks written
* average-block-write-cost
• RECAP B+ TREE
• OVERVIEW
• MEASURES OF QUERY COST
• SELECTION OPERATION
• BASIC ALGORITHMS
• SELECTIONS USING INDICES
• SELECTIONS INVOLVING COMPARISONS
• IMPLEMENTATION OF COMPLEX SELECTIONS
REFERENCES