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

storage engine: index + log vs page-based storage #3

Open
sunisdown opened this issue Jan 29, 2021 · 3 comments
Open

storage engine: index + log vs page-based storage #3

sunisdown opened this issue Jan 29, 2021 · 3 comments

Comments

@sunisdown
Copy link
Owner

目前常见的存储引擎基本可以分为两种类型,一种是索引+日志类型,写操作可以简化为日志追加,然后更新索引。另外一种是 page-based storage,像 B-Tree 系列的。这两种方式各有优劣。

@sunisdown
Copy link
Owner Author

举例

Index + Log

  • Bitcask(GoBeansDB)
  • LSM(LevelDB, RocksDB)

B*-Tree

  • InnoDB
  • ProgressSQL

@sunisdown
Copy link
Owner Author

  • LSM(LevelDB, RocksDB)

LSM 严格上来说不能算是 Index + Log,但是他们形式上非常接近。

@sunisdown
Copy link
Owner Author

https://news.ycombinator.com/item?id=9248298
下面的讨论非常好玩,比文章精彩。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant