知识卡片
二级索引随表刷盘和压实
SASI 为每张 SSTable 建自己的二级索引,内存表也维护独立的对应结构。按非主键列查询时先合并各索引给出的主键候选,再以基础记录对账。索引随原表刷盘或压实一起生成,避免与不可变文件视图脱节。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Implementation Details · 查看原书依据
One of the interesting developments in the area of LSM Tree indexing is SSTable-Attached Secondary Indexes (SASI) implemented in Apache Cassandra. To allow indexing table contents not just by the primary key, but also by any other
参考来源
- 位置:《Database Internals》Chapter 7. Log-Structured Storage(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch07.html#idm46104531562584,段 174)
- 结论依据:第 174–177 段给出二级索引的附着、查询与构造流程。
- 原始内容:One of the interesting developments in the area of LSM Tree indexing is SSTable-Attached Secondary Indexes (SASI) implemented in Apache Cassandra. To allow indexing table contents not just by the primary key, but also by any other