← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10294.a.3.f · 生成模型:未记录

存储设计的工作转移

理解等级:中级

每次插入先按写入顺序落盘,可以省去当场维护键顺序的工作,日后查询要返回键有序结果时则可能需要另外排序。记录怎么排放还影响指针如何更新、空闲空间何时回收、并发如何协调和故障怎样恢复。评价一个设计时,可按操作路径核算每段工作落在写入、读取还是后台,并结合同一工作负载对延迟、存储密度和运维复杂度的要求。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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,