F2023 #11 - Join Algorithms (CMU Intro to Database Systems)

  Рет қаралды 7,600

CMU Database Group

CMU Database Group

Күн бұрын

Matt Butrovich (mattbutrovi.ch/)
Slides: 15445.courses....
Notes: 15445.courses....
15-445/645 Intro to Database Systems (Fall 2023)
Carnegie Mellon University
15445.courses....

Пікірлер: 16
@nathanwilkinson2080
@nathanwilkinson2080 11 ай бұрын
Great lecture, thank you!
@murtnowski
@murtnowski 11 ай бұрын
Outstanding Job! I love it!
@ibrahimrabbani94
@ibrahimrabbani94 Ай бұрын
Thank you for the lecture! In the degenerate worst case where every tuple in relations R and S has the same value for the join key, Sort-Merge Join's merge cost is M + N where M and N are the number of pages in relations R and S respectively. Since this looks like a Block Nested-Loop Join, why can't we optimize this to M + CEIL(M/B-2)xN where B is the number of available pages in the buffer pool?
@mephistotel87
@mephistotel87 10 ай бұрын
The lecture is great!
@nanunsaram
@nanunsaram 8 ай бұрын
Thank you Matt!
@Lecker9419
@Lecker9419 10 ай бұрын
Still confused about the part for the case of a simple block nested loop join (no index), why wouldn't I want to reserve as much BP space as possible for my inner table ? the inner table is the going to be iterated over and over but for the sequentially scanned outer table we just need one page which can be removed easily with the next because it's not going to be accessed anymore, why keep cold data in the BP ? ...
@claudeli141
@claudeli141 9 ай бұрын
I think it is because each iteration of the outer loop (for each block in R) needs to scan all N blocks of the inner table. If the inner table is too large to fit in memory, for each iteration, we always need to load N blocks into BP. So we need to reduce the number of iterations in the outer loop, from M to ceil(M/(B-2)). Hope it is clear.
@blockpaper
@blockpaper 6 ай бұрын
Simply do math for each case. We multiply the number of readings of the inner table blocks by the number of readings of the outer table blocks ("read some blocks from the outer table into memory, make a scan of inner table, find tuples to satisfy condition; read into memory, make a scan, find tuples, read.." and so on). Therefore, the more outer table blocks we put in memory, the better it will be (fewer inner table scans will need to be done). Ideally, we would like the outer table to fit completely into memory, and then we will read the outer table once and the inner table once.
@user-lv2ht3qv2l
@user-lv2ht3qv2l 3 ай бұрын
thanks a lot!
@Shadb8si
@Shadb8si 5 ай бұрын
@andypavlo what is the song used in the ending credits for each lecture ?
@chriswong2748
@chriswong2748 10 ай бұрын
Why the right corner always hide part of the slide over all these years??
@olegpatraschku3736
@olegpatraschku3736 10 ай бұрын
download the slides, follow along.
@BenHutchison
@BenHutchison 11 ай бұрын
Omg. This speaker is strenuous to follow. If he spoke half as fast with half the jargon he'd be twice as clear.
@wujizhang5780
@wujizhang5780 11 ай бұрын
I think it's pretty good, and the instructor's pronunciation is very standard and clear. As a Chinese student, I feel that this course allows me to learn about DBMS while also practicing my English listening skills, since both Andy and this teacher speak at a relatively fast pace.
@connortsui646
@connortsui646 11 ай бұрын
if you had twice the braincells maybe you would take half a second to reconsider commenting at all?
@andypavlo
@andypavlo 11 ай бұрын
@BenHutchison Please apply to CMU and come do a better job: csd.cmu.edu/academics/doctoral/admissions
F2023 #12 - Query Execution Part 1 (CMU Intro to Database Systems)
1:18:33
CMU Database Group
Рет қаралды 7 М.
English or Spanish 🤣
00:16
GL Show
Рет қаралды 19 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 53 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 34 МЛН
How to Accelerate Apache Iceberg Metadata Retrieval
17:02
CelerData
Рет қаралды 282
NEW Tesla Prototype LEAKED at WB Studios | This Design Is Weird
20:34
S2024 #01 - Modern OLAP Database Systems (CMU Advanced Database Systems)
1:09:05
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 95 М.
Lecture 1. Introduction and Basics - Carnegie Mellon - Computer Architecture 2015 - Onur Mutlu
1:54:36
Carnegie Mellon Computer Architecture
Рет қаралды 546 М.
11 - Join Algorithms  (CMU Databases Systems / Fall 2019)
1:11:35
CMU Database Group
Рет қаралды 21 М.
Qdrant: Open Source Vector Search Engine and Vector Database (Andrey Vasnetsov)
1:02:38
English or Spanish 🤣
00:16
GL Show
Рет қаралды 19 МЛН