Avatar CS Knowledge Wiki

07 - Week 1 Overview

In the first week of the tutorial, you will build necessary storage formats for the storage engine, the read path and the write path of the system, and have a…

图片

In the first week of the tutorial, you will build necessary storage formats for the storage engine, the read path and the write path of the system, and have a working implementation of an LSM-based key-value store. There are 7 chapters (days) for this part.

  • Day 1: Memtable ↗. You will implement the in-memory read and write path of the system.
  • Day 2: Merge Iterator ↗. You will extend what you have built in day 1 and implement a scan interface for your system.
  • Day 3: Block Encoding ↗. Now we start the first step of the on-disk structure and build the encoding/decoding of the blocks.
  • Day 4: SST Encoding ↗. SSTs are composed of blocks and at the end of the day, you will have the basic building blocks of the LSM on-disk structure.
  • Day 5: Read Path ↗. Now that we have both in-memory and on-disk structures, we can combine them together and have a fully-working read path for the storage engine.
  • Day 6: Write Path ↗. In day 5, the test harness generates the structures, and in day 6, you will control the SST flushes by yourself. You will implement flush to level-0 SST and the storage engine is complete.
  • Day 7: SST Optimizations ↗. We will implement several SST format optimizations and improve the performance of the system.

At the end of the week, your storage engine should be able to handle all get/scan/put requests. The only missing parts are persisting the LSM state to disk and a more efficient way of organizing the SSTs on the disk. You will have a working Mini-LSM storage engine.

Knowledge map

知识图谱

当前文档、同目录指南与引用关系。

准备中 全局图谱

正在构建知识图谱...

拖动节点 · 滚动缩放 · 点击打开

帮助与支持

这篇文档有帮助吗?

请给我们反馈以改进文档质量
(点击按钮后会打开邮箱)

帮助改进文档

所有文档均开源,发现问题或不清楚的地方?提交 PR 来帮助改进。

编辑此页面 了解如何贡献 →

需要更多帮助?

加入社区或直接联系获取支持

文件管理器 /
位置 /
内容
Knowledge explorer

知识图谱

全部知识 准备图谱...
文章 文档 标签 分类

正在加载知识网络...

拖动节点 · 滚动缩放 · 单击查看详情 · 双击打开页面
标签云 / Tag Cloud