Professional Documents
Culture Documents
Immanuel Trummer
itrummer@cornell.edu
www.itrummer.org
Database Management
Systems (DBMS)
Application 1 Connections, Security, Utilities, ...
Application 2
DBMS Interface Query Processor
Query Parser Query Rewriter
Storage Manager
Data Access Buffer Manager
• Extendible hashing
• Linear hashing
Olivia 3
Philip 7
Rosa 3
Tia 6
Victor 5
Zemin 4 Insert Student "Alan"
Slides by Immanuel Trummer, Cornell University
Extendible Hashing
Hash Function
Example
(Not Stored)
Key Hash Directory Pages
Alan 001
P116
Bob 000
Chan 010 *** P131
Dora 101
David 001
Ester 111
Felix 100
Gert 010
Holy 111
Ida 001
Jana 000
Bucket Pages
Kyle 110
P131
Lana 110
Levi 101 Alan P41,2
Olivia 011
Philip 111
Rosa 011
Tia 110
Victor 101
Zemin 100 Insert Student "Alan"
Slides by Immanuel Trummer, Cornell University
Extendible Hashing
Hash Function
Example
(Not Stored)
Key Hash Directory Pages
Alan 001
P116
Bob 000
Chan 010 *** P131
Dora 101
David 001
Ester 111
Felix 100
Gert 010
Holy 111
Ida 001
Jana 000
Bucket Pages
Kyle 110
P131
Lana 110
Levi 101 Alan P41,2
2 3 2 2
Bob P24,1 Alan P41,2 Ester P52,2 Gert P33,1
Levi 101
Olivia 011 Felix P68,1 David P44,2 Holy P71,1 Chan P43,3
Philip 111 Ida P42,2
Rosa 011
P128
Tia 110
3
Dora P49,3
Victor 101
Zemin 100
P...
***
Round 1
Slides by Immanuel Trummer, Cornell University
Linear Hashing Example
Split Next
P... P...
**0 **1
Round 2
Slides by Immanuel Trummer, Cornell University
Linear Hashing Example
Split Next
Round 2
Slides by Immanuel Trummer, Cornell University
Linear Hashing Example
Split Next
Round 3
Slides by Immanuel Trummer, Cornell University
Linear Hashing Example
Split Next
Round 3
Slides by Immanuel Trummer, Cornell University
Linear Hashing Example
Split Next
Round 3
Slides by Immanuel Trummer, Cornell University
Insertions Summary