Query processing the basics
This presentation is the property of its rightful owner.
Sponsored Links
1 / 5

Query Processing: The Basics PowerPoint PPT Presentation


  • 57 Views
  • Uploaded on
  • Presentation posted in: General

Query Processing: The Basics. Chapter 10 (animations). Merge: An Example. Input runs. Output run. 2 3. 5 6. 2. 5. 3. 6. 10. 6. 3. 1. 5. 2. 7. 15. 1 2. 3 5. 6 7. 10 15. 1 7. 10 15. 10. 1. 15. 7. Input buffers. Output buffer.

Download Presentation

Query Processing: The Basics

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Query processing the basics

Query Processing: The Basics

Chapter 10

(animations)


Merge an example

Merge: An Example

Input runs

Output run

2 3

5 6

2

5

3

6

10

6

3

1

5

2

7

15

1 2

3 5

6 7

10 15

1 7

10 15

10

1

15

7

Input buffers

Output buffer


Duplicate elimination during merge

Duplicate elimination During Merge

Input runs

Last key used

Output run

2 3

5 6

5

2

3

6

15

6

5

1

2

3

6

3

1

2

5

15

1 2

3 5

6 15

1 3

5 15

1

5

15

3

Key 3 ignored: duplicate

Key 5 ignored: duplicate

Input buffers

Output buffer


Block nested loop illustrated

Block-Nested Loop Illustrated

Input buffer forr

r

rs

s

… and so on

Input buffer fors

Output buffer


Query processing the basics

Join During Merge Illustrated

r

D

A

1 3

p p

0 9

q q

8 7 3

s s s

5 7

u u

1 1

v v

1 3 1 3

p p p p

p p p p

4 0 0 4

8 7 3

s s s

s s s

7 7 7

5 7 5 7 5 7

u u u u u u

u u u u u u

2 2 5 5 0 0

B

E

p p

4 0

r

9

s

7

t t

2 5

u u u

2 5 0

x

0

rA=Bs

s


  • Login