知识卡片
存储设计的工作转移
每次插入先按写入顺序落盘,可以省去当场维护键顺序的工作,日后查询要返回键有序结果时则可能需要另外排序。记录怎么排放还影响指针如何更新、空闲空间何时回收、并发如何协调和故障怎样恢复。评价一个设计时,可按操作路径核算每段工作落在写入、读取还是后台,并结合同一工作负载对延迟、存储密度和运维复杂度的要求。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Part I. Storage Engines Part I. Understanding Trade-Offs · 查看原书依据
Not only there are many things to decide upon, but most of these decisions involve trade-offs. For example, if we save records in the order they were inserted into the database, we can store them quicker,
参考来源
- 位置:《Database Internals》Part I. Storage Engines(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/part01.html#database_storage,段 41)
- 结论依据:原文用写入顺序与查询顺序的不同说明代价转移,并分别列出引擎设计与优化目标。
- 原始内容:Not only there are many things to decide upon, but most of these decisions involve trade-offs. For example, if we save records in the order they were inserted into the database, we can store them quicker,