team-mabub / mabub-study

๐Ÿง™ ํŒ€ ๋งˆ๋ฒ•(Team Mabub)์˜ ์ „๊ณต ๊นŽ๋Š” ์Šคํ„ฐ๋”” ๐Ÿง™โ€โ™‚๏ธ
0 stars 0 forks source link

[2023-07-25] Intro to Database Systems 4๊ฐ• - Data Storage 2 #4

Closed CoodingPenguin closed 1 year ago

CoodingPenguin commented 1 year ago

๐Ÿ“Œ ๊ฐœ์š”

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

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

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

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

- ...

## โ“ ์งˆ๋ฌธ

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

- ...

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

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

- [...](...)
CoodingPenguin commented 1 year ago

๐Ÿ’ฌ ์ƒ๊ฐ

โ“ ์งˆ๋ฌธ

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

Nagunt commented 1 year ago

๐Ÿ’ฌ ์ƒ๊ฐ

โ“ ์งˆ๋ฌธ

jonyejin commented 1 year ago

๐Ÿ’ฌ ์ƒ๊ฐ

๐Ÿ“ Log-Structed Storage: ํŠœํ”Œ ๋Œ€์‹  ๋กœ๊ทธ๋ฅผ ์ €์žฅํ•œ๋‹ค.

๐Ÿ“SSTable: Sorted String Tables

๐Ÿ“Compaction

๐Ÿ“Data Representation

โ“ ์งˆ๋ฌธ

IamGroooooot commented 1 year ago

๐Ÿ’ฌ ์ƒ๊ฐ

ํฌ๊ฒŒ ๋‘ ๊ฐ€์ง€๋ฅผ ๋ฐฐ์› ๋‹ค. Log Structured Storage์™€ Data Representation

์ €๋ฒˆ ์‹œ๊ฐ„์— ์–˜๊ธฐํ•œ page-oriented architecture์˜ Slotted Page ๋””์ž์ธ์˜ ๋ฌธ์ œ์ ์„ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด Log Structered Storage๋ฅผ ์ œ์‹œํ–ˆ๋‹ค. ์ปจ์…‰์€ AWS S3์ฒ˜๋Ÿผ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฎ์–ด์”Œ์šธ ์ˆ˜๋Š” ์—†๊ณ  ํ•ญ์ƒ ์ƒˆ๋กœ์šด ํŽ˜์ด์ง€๋ฅผ ์ƒ์„ฑํ•˜๋„๋ก ํ•˜๋Š” ๊ฒƒ์ด๋‹ค.

Log Structured DB

Data Representation

์‹ค์ œ postgres๋ž‘ mysql์˜ numeric ๊ตฌํ˜„์ฒด๋ฅผ ๋ณด์—ฌ์ฃผ๋Š”๋ฐ ๋„ˆ๋ฌด ๋‹ฌ๋ผ์„œ ๋†€๋ž๋‹ค. postgres๋Š” digit์œผ๋กœ unsigned char๋ฅผ ์“ฐ๊ณ  mysql์€ buf(postgres์˜ digits ๋ณ€์ˆ˜ ์—ญํ• ) int32๋ฅผ ์ผ๋‹ค.

โ“ ์งˆ๋ฌธ

๋‹ค๋“ค ์™ธ๋ถ€ ๊ฐ’, ํŒŒ์ผ์„ ์–ด๋–ป๊ฒŒ ์ €์žฅํ•˜๋Š”์ง€ ๊ถ๊ธˆํ•˜๋‹ค.