Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2023-09-05] Intro to Database Systems 11๊ฐ• - Join Algorithms #14

Open
CoodingPenguin opened this issue Aug 15, 2023 · 3 comments
Assignees
Labels
Database ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๐Ÿ“ ์Šคํ„ฐ๋”” ์ผ์ง€ ์Šคํ„ฐ๋”” ์ผ์ง€

Comments

@CoodingPenguin
Copy link
Member

CoodingPenguin commented Aug 15, 2023

๐Ÿ“Œ ๊ฐœ์š”

  • ์‹œ๊ฐ„: 2023-09-05(ํ™”) 21:00
  • ์ž๋ฃŒ: 11๊ฐ• Join Algorithms
  • ์ฐธ์—ฌ์ž: ํŽญ๊ท„, ๊ทธ๋ฃจํŠธ, ๋ ‰์‚ฌ, ๋‚˜๊ฐ•

โœ๏ธ ์ค€๋น„

์•„๋ž˜ ์–‘์‹์„ ๋ณต์‚ฌํ•ด ์Šคํ„ฐ๋”” ์ค€๋น„๋ฅผ ์™„๋ฃŒํ•ด์ฃผ์„ธ์š”!

## ๐Ÿ’ฌ ์ƒ๊ฐ

<!--๊ฐ•์˜๋ฅผ ๋“ฃ๊ณ  ์ƒ๊ฐํ•œ ๋‚ด์šฉ์„ 3์ค„ ๋‚ด๋กœ ๊ฐ„๋‹จํžˆ ์ •๋ฆฌํ•ด์ฃผ์„ธ์š”!-->

- ...

## โ“ ์งˆ๋ฌธ

<!--๊ณต๋ถ€ํ•˜๋ฉด์„œ ๊ถ๊ธˆํ•œ ์ ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”!-->

- ...

## ๐Ÿ“š ์ฐธ๊ณ  ์ž๋ฃŒ

<!--๊ณต๋ถ€ํ•˜๋ฉด์„œ ๊ฐ™์ด ๊ณต๋ถ€ํ•œ ์ž๋ฃŒ๋ฅผ ์ฒจ๋ถ€ ๋ฐ ๊ณต์œ ํ•ด์ฃผ์„ธ์š”!-->

- [...](...)
@CoodingPenguin CoodingPenguin added ๐Ÿ“ ์Šคํ„ฐ๋”” ์ผ์ง€ ์Šคํ„ฐ๋”” ์ผ์ง€ Database ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค labels Aug 15, 2023
@CoodingPenguin CoodingPenguin changed the title [2023-08-29] Intro to Database Systems 11๊ฐ• - Join Algorithms [2023-09-05] Intro to Database Systems 11๊ฐ• - Join Algorithms Aug 30, 2023
@CoodingPenguin
Copy link
Member Author

CoodingPenguin commented Sep 3, 2023

๐Ÿ’ฌ ์ƒ๊ฐ

  • Outer Table์ด Inner Table๋ณด๋‹ค ์ž‘์•„์•ผ ํ•œ๋‹ค.
    • Outer Table์ด๋ž‘ Inner Table ๊ตฌ๋ถ„์ด ์ž˜ ์•ˆ ๋๋Š”๋ฐ, ์—ฌ๊ธฐ ๋‹ต์ด ๋„ˆ๋ฌด ๋ช…์พŒํ–ˆ๋‹ค.
  • Join ์—ฐ์‚ฐ์„ ์—ฌ๋Ÿฌ ๊ฐœ๋กœ ๊ตฌํ˜„ํ•œ ๋ฐฉ์‹์„ ๊ณต๋ถ€ํ–ˆ๋‹ค.

โ“ ์งˆ๋ฌธ

  • Block Nested Loop Join์—์„œ ํŽ˜์ด์ง€๋ฅผ ์—ฌ๋Ÿฌ ๊ฐœ ๋ฒ„ํผ๋กœ ๋‚˜๋ˆˆ๋‹ค๋Š”๊ฒŒ ์ง๊ด€์ ์œผ๋กœ ์ดํ•ด๊ฐ€ ์•ˆ ๋ฉ๋‹ˆ๋‹ค.

@IamGroooooot
Copy link
Member

IamGroooooot commented Sep 4, 2023

๐Ÿ’ฌ ์ƒ๊ฐ

Join์˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜์— ์ž์„ธํžˆ ์•Œ ์ˆ˜ ์žˆ์—ˆ๋‹ค.
๋ณต์žกํ•˜๊ฒŒ ๋Š๊ผˆ์กŒ๋˜ Join์ด ์‚ฌ์‹ค inner์™€ outer table์˜ iteration์ด์—ˆ๊ณ  ์—ฌ๋Ÿฌ ํŠน์„ฑ์„ ๊ณ ๋ คํ•˜์—ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด ์“ฐ์ธ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๊ฒŒ๋˜์—ˆ๋‹ค.

โ“ ์งˆ๋ฌธ

  • join์˜ output์ด record id์—ฌ์„œ late materialization์„ ํ•˜๊ฒŒ๋˜๋Š” ์ƒํ™ฉ์ด ๋ญ๊ฐ€ ์žˆ์ง€?
  • hash joined์ด ์œ ๋ฆฌํ•œ ์ƒํ™ฉ์ด ์žˆ๊ณ  non-uniformํ•˜๊ณ  ๊ฒฐ๊ณผ๋„ sorted merge์ธ ๊ฒฝ์šฐ sort merge๊ฐ€ ์œ ๋ฆฌํ•œ๋ฐ ์ด๋Ÿฌํ•œ ๊ฒƒ์€ DBA๊ฐ€ ํŠน์„ฑ์„ ํŒ๋‹จํ•ด์„œ ๋‹ค๋ฅธ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์“ฐ๋„๋ก ์„ค์ •ํ•˜๋Š” ๊ฒƒ์ธ๊ฐ€?

@Nagunt
Copy link
Contributor

Nagunt commented Sep 5, 2023

๐Ÿ’ฌ ์ƒ๊ฐ

  • ๋‚˜๋ฆ„ ๋‹จ์ˆœํ•˜๊ฒŒ๋งŒ ์ƒ๊ฐํ–ˆ๋˜ Join์ด ๋ฐ์ดํ„ฐ์˜ ์–‘์ด ๋งŽ์•„์งˆ์ˆ˜๋ก ์ตœ์ ํ™”๋ฅผ ์š”๊ตฌํ•œ๋‹ค๋Š” ์ ์„ ์•Œ๊ฒŒ ๋˜์—ˆ๋‹ค.
  • ์—ฌ๋Ÿฌ๊ฐ€์ง€ join ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ๋ฐฐ์› ๋‹ค. ์ด ์•Œ๊ณ ๋ฆฌ์ฆ˜์€ DBMS์˜ join ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋‹ค๋ฅธ ํ”„๋กœ๊ทธ๋žจ์—์„œ search ๋“ฑ์—๋„ ์‘์šฉํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™๋‹ค.
  • Bloom Filter ๊ธฐ๋Šฅ์€ ๊ต‰์žฅํžˆ ์‹ ๊ธฐํ–ˆ๋‹ค.

โ“ ์งˆ๋ฌธ

  • ...

๐Ÿ“š ์ฐธ๊ณ  ์ž๋ฃŒ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Database ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๐Ÿ“ ์Šคํ„ฐ๋”” ์ผ์ง€ ์Šคํ„ฐ๋”” ์ผ์ง€
Projects
None yet
Development

No branches or pull requests

4 participants