1 / 5

Query Processing: The Basics

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.

faxon
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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Query Processing: The Basics Chapter 10 (animations)

  2. 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

  3. 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

  4. Block-Nested Loop Illustrated Input buffer forr r rs s … and so on Input buffer fors Output buffer

  5. 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

More Related