Docsity

Indexing Overview - Lecture Slides | EECS 484, Study notes of Database Management Systems (DBMS)

Partial preview of the text

Download Indexing Overview - Lecture Slides | EECS 484 and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

Indexing Overview

EECS

Winter

1

Indexing?

What

do

you

mean

by

an

index?

Why

index

a

database?

alternatives?

2

Root 4

Insertion

Find

correct

leaf

L.

Put

data

entry

onto

L.

If

L

has

enough

space,

done!

Else,

must

split

L

and

rearrange

5

Split

leaf

page

Copy/Push

up

7

Split

index

node

Copy/Push

up

8

Root

Redistribution?

Height

remained

unchanged.

So

should

it

be

used

always?

10

Arguments

against

redistribution

Checking

siblings

increases

I/O

Very

likely

that

nodes

would

fill

themselves

eventually

BUT: โ€ข

If

leaf

node

splits,

sibling

recovered

anyway.

[for

pointer

adjustments]

So

makes

sense

to

check

in

that

case

11

Delete

Before

13 13

Root

Delete

After

14 13

Root

Delete

After

16 13

Root

Delete

Before

17 17 5 13 27 30 2 2** 3*

7* 8*

16*

24*

29*

34* 38* 39*

Delete

After

19 5

Root

Static

Hashing

What

is

it?

What

is

lacking?

20