Тёмный

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

CMU Database Group
Подписаться 66 тыс.
Просмотров 7 тыс.
50% 1

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

Наука

Опубликовано:

 

3 окт 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@nathanwilkinson2080
@nathanwilkinson2080 9 месяцев назад
Great lecture, thank you!
@murtnowski
@murtnowski 9 месяцев назад
Outstanding Job! I love it!
@mephistotel87
@mephistotel87 9 месяцев назад
The lecture is great!
@nanunsaram
@nanunsaram 6 месяцев назад
Thank you Matt!
@user-lv2ht3qv2l
@user-lv2ht3qv2l Месяц назад
thanks a lot!
@Shadb8si
@Shadb8si 4 месяца назад
@andypavlo what is the song used in the ending credits for each lecture ?
@Lecker9419
@Lecker9419 8 месяцев назад
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 7 месяцев назад
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.
@iskanderfakhrutdinov2885
@iskanderfakhrutdinov2885 4 месяца назад
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.
@chriswong2748
@chriswong2748 8 месяцев назад
Why the right corner always hide part of the slide over all these years??
@olegpatraschku3736
@olegpatraschku3736 8 месяцев назад
download the slides, follow along.
@BenHutchison
@BenHutchison 9 месяцев назад
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 9 месяцев назад
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 9 месяцев назад
if you had twice the braincells maybe you would take half a second to reconsider commenting at all?
@andypavlo
@andypavlo 9 месяцев назад
@BenHutchison Please apply to CMU and come do a better job: csd.cmu.edu/academics/doctoral/admissions
Далее
Maybe i need to add instructions @popflexactive
00:14
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34