COMP3017 Advanced Databases

Slides:



Advertisements
Similar presentations
CS4432: Database Systems II Hash Indexing 1. Hash-Based Indexes Adaptation of main memory hash tables Support equality searches No range searches 2.
Advertisements

Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Hash-Based Indexes Chapter 11.
DBMS 2001Notes 4.2: Hashing1 Principles of Database Management Systems 4.2: Hashing Techniques Pekka Kilpeläinen (after Stanford CS245 slide originals.
Hashing and Indexing John Ortiz.
CS 245Notes 51 CS 245: Database System Principles Hector Garcia-Molina Notes 5: Hashing and More.
Chapter 11 (3 rd Edition) Hash-Based Indexes Xuemin COMP9315: Database Systems Implementation.
Index tuning Hash Index. overview Introduction Hash-based indexes are best for equality selections. –Can efficiently support index nested joins –Cannot.
Dr. Kalpakis CMSC 661, Principles of Database Systems Index Structures [13]
CS CS4432: Database Systems II Basic indexing.
1 CS143: Index. 2 Topics to Learn Important concepts –Dense index vs. sparse index –Primary index vs. secondary index (= clustering index vs. non-clustering.
1 Hash-Based Indexes Chapter Introduction  Hash-based indexes are best for equality selections. Cannot support range searches.  Static and dynamic.
CPSC-608 Database Systems Fall 2010 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #8.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #11.
CPSC-608 Database Systems Fall 2009 Instructor: Jianer Chen Office: HRBB 309B Phone: Notes #9.
CPSC-608 Database Systems Fall 2008 Instructor: Jianer Chen Office: HRBB 309B Phone: Notes #8.
CS 245Notes 51 CS 245: Database System Principles Hector Garcia-Molina Notes 5: Hashing and More.
CS 4432lecture #10 - indexing & hashing1 CS4432: Database Systems II Lecture #10 Professor Elke A. Rundensteiner.
CS 277 – Spring 2002Notes 51 CS 277: Database System Implementation Arthur Keller Notes 5: Hashing and More.
CS CS4432: Database Systems II. CS Index definition in SQL Create index name on rel (attr) (Check online for index definitions in SQL) Drop.
1 CS143: Index. 2 Topics to Learn Important concepts –Dense index vs. sparse index –Primary index vs. secondary index (= clustering index vs. non-clustering.
1 Chapter 12: Indexing and Hashing Indexing Indexing Basic Concepts Basic Concepts Ordered Indices Ordered Indices B+-Tree Index Files B+-Tree Index Files.
12.1 Chapter 12: Indexing and Hashing Spring 2009 Sections , , Problems , 12.7, 12.8, 12.13, 12.15,
CS 245Notes 51 CS 245: Database System Principles Hector Garcia-Molina Notes 5: Hashing and More.
CS 245Notes 51 CS 245: Database System Principles Hector Garcia-Molina Notes 5: Hashing and More.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Hash-Based Indexes Chapter 11 Modified by Donghui Zhang Jan 30, 2006.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Indexed Sequential Access Method.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 Hash-Based Indexes Chapter 10.
Indexes. Primary Indexes Dense Indexes Pointer to every record of a sequential file, (ordered by search key). Can make sense because records may be much.
CMPT 454, Simon Fraser University, Fall 2009, Martin Ester 111 Database Systems II Index Structures.
Chapter 5 Record Storage and Primary File Organizations
1 CSCE 520 Test 2 Info Indexing Modified from slides of Hector Garcia-Molina and Jeff Ullman.
1 Ullman et al. : Database System Principles Notes 5: Hashing and More.
1 Query Processing Part 3: B+Trees. 2 Dense and Sparse Indexes Advantage: - Simple - Index is sequential file good for scans Disadvantage: - Insertions.
CPSC 8620Notes 61 CPSC 8620: Database Management System Design Notes 6: Hashing and More.
1 Ullman et al. : Database System Principles Notes 4: Indexing.
Access Structures COMP3211 Advanced Databases Dr Nicholas Gibbins
CS 245: Database System Principles
Relational Database Systems 2
Indexing and hashing.
CS 245: Database System Principles Notes 4: Indexing
CS522 Advanced database Systems
COP Introduction to Database Structures
CS 245: Database System Principles Notes 4: Indexing
Hash-Based Indexes Chapter 11
CPSC-608 Database Systems
Database Management Systems (CS 564)
CS 245: Database System Principles
Introduction to Database Systems
Yan Huang - CSCI5330 Database Implementation – Access Methods
(Slides by Hector Garcia-Molina,
CS222: Principles of Data Management Notes #8 Static Hashing, Extendible Hashing, Linear Hashing Instructor: Chen Li.
Hash-Based Indexes Chapter 10
CS222P: Principles of Data Management Notes #8 Static Hashing, Extendible Hashing, Linear Hashing Instructor: Chen Li.
CS 245: Database System Principles
Hash-Based Indexes Chapter 11
Index tuning Hash Index.
CS 245: Database System Principles Notes 4: Indexing
Indexing and Hashing B.Ramamurthy Chapter 11 2/5/2019 B.Ramamurthy.
Database Systems (資料庫系統)
Database Design and Programming
2018, Spring Pusan National University Ki-Joune Li
Indexing 4/11/2019.
Chapter 11: Indexing and Hashing
CPSC-608 Database Systems
Hash-Based Indexes Chapter 11
Chapter 11 Instructor: Xin Zhang
CS222/CS122C: Principles of Data Management UCI, Fall 2018 Notes #07 Static Hashing, Extendible Hashing, Linear Hashing Instructor: Chen Li.
CS4432: Database Systems II
Index Structures Chapter 13 of GUW September 16, 2019
Presentation transcript:

COMP3017 Advanced Databases Access Structures COMP3017 Advanced Databases Dr Nicholas Gibbins - nmg@ecs.soton.ac.uk 2012-2013

Overview Index basics B+trees Hash tables Sequential files Dense indexes Sparse indexes Multi-level indexes Secondary indexes Indirection B+trees Hash tables

Index Basics

Index basics Relations are stored in files Files are stored as collections of blocks Blocks contain records that correspond to tuples in the relation How do we find the tuples that match some criteria?

Indexes Blocks containing records Index search value matching records

Sequential Files Tuples of a relation are sorted by their primary key data file Tuples of a relation are sorted by their primary key Tuples are then distributed among blocks in that order Common to leave free space in each block to allow for later insertions 10 20 30 40 50 60 70 80 Only two records per block – typically more No free space shown in blocks 90 100 110 120

To Index or Not To Index? Maintaining an index costs processor time When entries are added, index must be updated Index must be maintained to make good use of resources There is a trade off between: Rapid access when retrieving data Speed of updating the database

Dense Index dense index data file Sequence of blocks holding only keys and pointers to records Entry for every record in data file Blocks of index are in same order as those of the data file Key-pointer pair much smaller than record 10 10 20 20 30 30 40 40 50 50 60 60 70 80 70 90 80 100 90 110 100 120 110 ... 120 ... ...

Dense Index Fewer blocks than data file, fewer disk accesses Keys are sorted, so can use binary search Can keep in main memory if small enough (no disk accesses) 10 10 20 20 30 30 40 40 50 50 60 60 70 80 70 90 80 100 90 110 100 120 110 ... 120 ... ...

Sparse Index One key-pointer pair per block of data file Can only be used if data file is sorted by search key Uses less space than dense index Takes longer to find key than dense index 10 10 30 20 50 30 70 40 90 50 110 60 ... ... 70 ... 80 ... 90 ... 100 ... 110 ... 120 ... ...

Multi-level Index Index file may cover many blocks sparse second-level dense first-level data file Index file may cover many blocks May still need many disk accesses Use sparse index over the first index Can’t be a dense index (would use the same number of blocks as the index being indexed) Can create a third level index, but in general prefer B-trees 10 10 10 110 30 20 ... 50 30 ... 70 40 ... 90 50 110 60 ... ... 70 ... 80 ... 90 ... 100 ... 110 ... 120 ... ...

Notes on pointers: Block pointers (as used in sparse indexes) can be smaller than record pointers (used in dense indexes) Physical record pointers consist of a block pointer and an offset If file is contiguous, then we can omit pointers Compute offset from block size and key position

R1 K1 R2 K2 K3 R3 K4 R4

K1 K2 K3 K4 R1 say: R2 1024 B per block R3 R4 if we want K3 block: get it at offset (3-1)1024 = 2048 bytes R2 K2 K3 R3 K4 R4

Sparse vs. Dense Tradeoff Less index space per record can keep more of index in memory Better for insertions Dense: Can tell if a record exists without accessing file Needed for secondary indexes

Duplicate Keys Dense index approach #1 dense index data file 10 10 10 20 20 20 20 30 30 30 30 30 40 30 Entry in index for every value, including duplicates 50 40 50 50 60 50 ... 60 ... ...

Duplicate Keys Dense index approach #2 data file Dense index approach #2 better approach? (smaller index) 10 10 20 10 30 10 40 20 50 20 60 30 ... ... 30 ... 30 Entry in index for every unique value ... 40 50 50 60

Duplicate Keys Sparse index approach #1 data file Sparse index approach #1 Searching for (e.g.) 20 will give unexpected results 10 10 10 10 20 10 30 20 20 40 20 50 30 ... ... 30 ... 30 Entry in index for every value, including duplicates ... 40 50 50 60

Duplicate Keys Sparse index approach #2 data file Sparse index approach #2 Index contains first new key from each block 10 10 20 10 30 10 30 20 40 20 50 30 ... ... 30 ... 30 Entry in index for every value, including duplicates ... 40 50 50 60

Duplicate Keys Sparse index approach #2 data file Sparse index approach #2 Can we exclude sequences of blocks with repeated keys? Point only to first instance of each value 10 10 20 10 30 10 40 20 50 20 30 30 30 Entry in index for every value, including duplicates 40 50 50 60

Deletion from Sparse Index data file 10 10 30 20 50 30 70 40 90 50 110 60 ... ... 70 ... 80 ... 90 ... 100 ... 110 ... 120 ... ...

Deletion from Sparse Index data file Delete record 40 10 10 30 20 50 30 70 40 90 50 110 60 ... ... 70 ... 80 ... 90 ... 100 ... 110 ... 120 ... ...

Deletion from Sparse Index data file Delete record 30 Delete record 30 from data file and reorder block Update entry in index 10 10 40 30 20 50 30 40 70 40 90 50 110 60 ... ... 70 ... 80 ... 90 ... 100 ... 110 ... 120 ... ...

Deletion from Sparse Index data file Delete records 30 and 40 Delete records from data file Update index 10 10 50 30 20 50 70 30 90 70 40 90 50 110 60 ... ... 70 ... 80 ... 90 ... 100 ... 110 ... 120 ... ...

Deletion from Dense Index data file Delete record 30 Delete record from data file Remove entry from index and update index 10 10 20 20 30 40 30 40 50 40 40 50 50 60 60 70 80 70 90 80 100 90 110 100 120 110 ... 120 ... ...

Insertion into Sparse Index data file 10 10 30 20 40 30 60 90 40 50 60 90 100

Insertion into Sparse Index data file Insert record 34 Easy! We have free space in the right block of the data file 10 10 30 20 40 30 60 34 90 40 50 60 90 100

Insertion into Sparse Index data file Insert record 15 Add to data file and immediately reorganise Update index Alternatively: Insert new block (chained file) 10 10 20 30 15 20 40 20 30 60 30 90 40 50 60 90 100

Insertion into Sparse Index data file overflow blocks Insert record 25 Block is full, so add to overflow block Reorganise later... 10 10 25 30 20 40 30 60 90 40 50 60 90 100

Secondary Indexes dense index data file Unlike a primary index, does not determine placement of records in data file Location (order) of records may have been decided by a primary index on another field Secondary indexes are always dense Pointers are record pointers, not block pointers 10 20 20 40 30 10 40 80 50 70 60 50 70 80 60 90 100 100 90 110 120 120 110 ... 30 ... ...

Secondary Indexes Sparse secondary indexes make no sense sparse index data file Sparse secondary indexes make no sense 20 20 10 40 70 10 60 80 90 70 110 50 ... ... 60 ... 100 ... 90 120 110 30

Secondary Indexes sparse second-level dense first-level data file May have higher levels of sparse indexes above the dense index 10 10 20 60 20 40 110 30 10 ... 40 80 ... 50 70 60 50 70 80 60 90 100 100 90 110 120 120 110 ... 30 ... ...

Duplicate values data file Secondary indexes need to cope with duplicate values in the data file 20 10 20 40 10 40 30 10 20 10 30 40

Duplicate values Solution #1: repeated entries Problems index data file Solution #1: repeated entries Problems excess disk space excess search time 10 20 10 10 10 20 10 40 20 10 20 40 20 30 30 30 10 40 20 40 10 40 30 ... 40 ... ...

Duplicate values Solution #2: drop repeated keys Problems index data file Solution #2: drop repeated keys Problems variable size records in index 10 20 10 20 40 20 10 20 40 30 30 10 40 20 40 10 30 ... 40 ... ...

Duplicate values Solution #3: chain records with same key Problems index data file Solution #3: chain records with same key Problems need to add fields to records need to follow chain 10 20 20 10 30 20 40 40 ... 10 40 30 10 20 10 30 40

Duplicate values Solution #4: indirection via buckets of pointers index buckets data file Solution #4: indirection via buckets of pointers Advantages If we have multiple secondary indexes on a relation, we can calculate conjunctions by taking intersections of buckets Don’t need to examine data file! 10 20 20 10 30 20 40 40 ... 10 40 30 10 20 10 30 40

Conventional indexes Advantages: Disadvantages: Simple Index is sequential file and good for scans Disadvantages: Inserts expensive, and/or Lose sequentiality & balance

B+trees

B+trees The most widely used tree-structured indexes Balanced multi-way tree Yields consistent performance Sacrifices sequentiality

B+tree example Root node 100 30 120 150 180 Non-leaf nodes Leaf nodes 11 30 35 30 35 120 130 150 156 179 180 200

120 150 180 Example non-leaf node keys < 120 120 ≤ keys < 150 Example is 3-way – branching factor depends on block size, key size and pointer size keys < 120 120 ≤ keys < 150 150 ≤ keys < 180 keys ≥ 180

Non-leaf nodes Root node typically kept in memory Entrance point to index – used as frequently as any other node Some nodes from second level may also be kept in memory

150 156 179 Example leaf node from non-leaf to next leaf to record Example is 3-way – branching factor depends on block size, key size and pointer size to record with key 156 to record with key 150 to record with key 179

Leaf nodes If the index is a primary index Leaf nodes are records containing data, stored in the order of the primary key The index provides an alternative to a sequential scan If the index is a secondary index Leaf nodes contain pointers to the data records Data can be accessed in the sequence of the secondary key A secondary index can point to any sort of data file, for example one created by hashing

Node size Each node is of fixed size and contains n keys n+1 pointers non-leaf 120 150 180 leaf 150 156 179

Minimum nodes Don’t want nodes to be too empty (efficient use of space) Non-leaf: (n+1)/2 pointers Leaf: (n+1)/2 pointers

Minimum node examples (n=3) full minimum non-leaf 120 150 180 120 leaf 150 156 179 150 156

B+tree rules All leaves same distance from root (balanced tree) Pointers in leaves point to records except for “sequence pointer” Number of pointers/keys for B+tree of order n: max ptrs keys min ptrs to data min keys Non-leaf n+1 n (n+1)/2 (n+1)/2 - 1 Leaf (n+1)/2 Root 1

B+tree arithmetic example First, some parameters: block size 8kb, of which: b = 8000 bytes available for storage of records key length k = 10 bytes record length r = 100 bytes (including the key) record pointer p = 6 bytes

B+tree arithmetic example A leaf node in a primary index can accommodate lp records, where lp = b/r = 80 records A leaf node in a secondary index can accommodate ls records, where ls = (b-p)/(k+p) = 499 records A non-leaf node could accommodate i entries, where i = (b-p)/(k+p) = 499 records To allow for expansion, assume initial node occupancy of u, where u = 0.6

B+tree primary index For a primary index (the leaf nodes hold the records) A non-leaf node initially points to i*u = blocks Each leaf initially contains lp*u = records 1 level of non-leaf nodes initially points to (lp*u)(i*u) = records 2 levels of non-leaf nodes initially point to (i*u)2 = blocks (lp*u)(i*u)2 = records

B+tree primary index For a primary index (the leaf nodes hold the records) A non-leaf node initially points to i*u = 299 blocks Each leaf initially contains lp*u = 48 records 1 level of non-leaf nodes initially points to (lp*u)(i*u) = 14,352 records 2 levels of non-leaf nodes initially point to (i*u)2 = 89,401 blocks (lp*u)(i*u)2 = 4,291,248 records

B+tree secondary index For a secondary index (the leaf nodes hold record pointers) A non-leaf node initially points to i*u = blocks A leaf node initially points at ls*u = records 1 level of non-leaf nodes initially points to (ls*u)(i*u) = records 2 levels of non-leaf nodes initially point to (ls*u)(i*u)2 = records

B+tree secondary index For a secondary index (the leaf nodes hold record pointers) A non-leaf node initially points to i*u = 299 blocks A leaf node initially points at ls*u = 299 records 1 level of non-leaf nodes initially points to (ls*u)(i*u) = 89,401 records 2 levels of non-leaf nodes initially point to (ls*u)(i*u)2 = 26,730,899 records It is not normally necessary to go more than about three levels deep in the index

B+tree Insertion Four cases to consider: Space available in leaf Leaf overflow Non-leaf overflow New root

Case 1: insert key=32 100 30 3 5 11 30 31 32

Case 2: insert key=7 100 7 30 30 3 5 7 3 11 5 11 30 31

Case 3: insert key=160 100 180 120 150 180 180 150 156 179 160 179 180 200

Case 4: insert 45 30 10 20 30 40 1 2 3 10 12 20 25 30 32 40 40 45

B+tree Deletion Four cases to consider: Simple case Coalesce with sibling Re-distribute keys Cases 2. or 3. at non-leaf

Case 2: delete key=50 (n=4) 10 40 100 100 10 20 30 40 40 50

Case 3: delete key=50 (n=4) 10 35 40 100 10 20 30 35 35 40 40 50

Case 4: delete key=37 (n=4) new root 25 100 10 20 100 25 40 30 40 40 26 30 10 14 30 37 20 22 40 45

B+tree deletions in practice Often, coalescing is not implemented Too hard and not worth it!

B-trees versus static indexed sequential files B-trees consume more space Blocks are not contiguous Fewer disk accesses for static indexes, even allowing for reorganisation Concurrency control is harder in B-trees but DBA does not know: when to reorganize how full to load pages of new index

Hashing

Hashing Main memory hash table Secondary storage hash table Hash function h() takes a key and computes an integer value Value is used to select a bucket from a bucket array Bucket array contains linked lists of records Secondary storage hash table Stores many more records than a main memory hash table Bucket array consists of disk blocks

Hashing approach #1 Hash function calculates block pointer directly, or as offset from first block Requires bucket blocks to be in fixed, consecutive locations buckets ... key  h(key)

Hashing approach #2 Hash function calculates offset in array of block pointers (directory) Used for “secondary” search keys directory buckets ... key  h(key)

Example hash function Key = ‘x1 x2 … xn’ (n byte character string), b buckets h: add x1 + x2 + ….. xn, compute sum modulo b Not a particularly good function Good hash function has the same expected number of keys per bucket for each bucket

Buckets Do we keep keys sorted? Yes, if CPU time is critical and inserts/deletes are relatively infrequent

Hashing example Two records per bucket 1 2 Unrealistically low 3

Hashing example Insert a, b, c, d h(a) = 1 h(b) = 2 h(c) = 1 h(d) = 0 d 1 a c 2 b 3

Hashing example: Overflow Insert e h(e) = 1 d 1 a e c 2 b 3

Hashing example: Deletion Delete e a 1 b d c 2 e 3 f g

Hashing example: Deletion Delete f (move g up) a 1 b d c 2 3 f g g

Hashing example: Deletion Delete c (move d from overflow block) a 1 b d c d 2 3 g

Rule of thumb: Space utilisation should be between 50% and 80% Utilisation = #keys used / total #keys that fit If < 50%, wasting space If > 80%, overflows significant depends on how good hash function is and on #keys/bucket

How do we cope with growth? Overflows and reorganizations Dynamic hashing Extensible Linear

Extensible hashing Combines two ideas: Use i of b bits output by hash function, where i grows over time b h(k)  1 i

Extensible hashing Combines two ideas: Use i of b bits output by hash function, where i grows over time Use a directory directory buckets h(k)[i]  ...

Example h(k) gives 4 bits 2 keys/bucket i=1 0001 1 1001 1100

Example Insert 1010 Bucket overfull Extend (double) directory Split bucket i=1 i=2 0001 00 1 01 1001 10 1100 1010 11 1100

Example Insert 0111 i=2 0001 00 0111 01 1001 10 1100 1010 11 1100

Example Insert 0000 0000 0001 i=2 0001 0111 00 0111 01 1001 10 1100 1010 11 1100

Example Insert 1001 0000 0001 i=3 i=2 000 0111 001 00 010 01 1001 10 011 1001 11 100 101 1001 1010 110 1010 1100 111 1100

Extensible hashing: deletion No merging of blocks Merge blocks and cut directory if possible (Reverse insert procedure)

Overflow chains Example: many records with duplicate keys Insert 1100 1 1101 1101

Overflow chains Example: many records with duplicate keys Insert 1100 01 10 11 1101 1101

Overflow chains Example: many records with duplicate keys Insert 1100 Add overflow block i=2 00 01 10 11 1101 1100 1101

Summary Pro Con Can handle growing files with less wasted space with no full reorganizations Con Indirection not bad if directory in memory Directory doubles in size now it fits in memory, now it doesn’t suddenly increase in disk accesses!

Linear hashing Another dynamic hashing scheme Combines two ideas Use i least significant bits of hash, where i grows over time b h(k)  1 i

Linear hashing Another dynamic hashing scheme Combines two ideas Use i least significant bits of hash, where i grows over time Hash file grows incrementally and linearly (unlike extensible hash file, which periodically doubles) b h(k)  1 i

Example: b=4 bits, i=2, 2 keys/bucket 0000 0101 future growth buckets 1010 1111 00 10 01 11 m = max used bucket = 01

Example: b=4 bits, i=2, 2 keys/bucket 0000 0101 future growth buckets 1010 1111 00 10 01 11 m = max used bucket = 01 If h(k)[i ]  m, then look at bucket h(k)[i ] else, look at bucket h(k)[i ] - 2i -1 Rule

Example: b=4 bits, i=2, 2 keys/bucket 0000 0101 future growth buckets 1010 1111 00 10 01 11 m = max used bucket = 01

Example: b=4 bits, i=2, 2 keys/bucket 0000 0101 1010 future growth buckets 1010 1111 00 10 01 11 10 m = max used bucket = 10

Example: b=4 bits, i=2, 2 keys/bucket 0101 insert 0101 0000 0101 1010 future growth buckets 1111 00 01 11 10 m = max used bucket = 10

Example: b=4 bits, i=2, 2 keys/bucket 0000 0101 1010 1111 future growth buckets 0101 00 01 11 10 11 m = max used bucket = 11

Example: further growth 0000 0101 1010 1111 future growth buckets 0101 00 01 10 11 m = max used bucket = 11

Example: i=3 m = max used bucket = 11 0000 0101 1010 1111 0101 000 100 001 101 010 110 011 111 m = max used bucket = 11

Example: i=3 m = max used bucket = 100 0000 0101 1010 1111 0101 000 100 001 101 010 110 011 111 100 m = max used bucket = 100

Example: i=3 m = max used bucket = 101 0000 0101 1010 1111 0101 0101 001 101 010 110 011 111 100 101 m = max used bucket = 101

Example: i=3 m = max used bucket = 101 0000 1010 1111 0101 0101 000 001 010 110 011 111 100 101 m = max used bucket = 101

When do we expand file? Keep track of utilisation U = #used slots / total #slots If U > threshold, then increase m (and maybe i)

Linear Hashing Pro Con Can handle growing files with less wasted space with no full reorganizations No indirection like extensible hashing Con Can still have overflow chains

Indexing versus Hashing

Indexing vs Hashing Hashing good for probes given a key: SELECT ... FROM R WHERE R.A = 5

Indexing vs Hashing Indexing (Including B-trees) good for range searches: SELECT FROM R WHERE R.A > 5

Further Reading

Further Reading Chapter 14 of Garcia-Molina et al Sections 14.1-14.3 Next week: Multi-key Indexing Sections 14.4-14.7