← 返回刚才阅读的位置

知识卡片

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

内存库和磁盘库

理解等级:中级

内存库通常直接访问内存对象,指针追踪、可变长度记录和细粒度访问开销较小;磁盘库的常驻数据需要自行管理编码、磁盘引用、空闲空间和碎片,常以较高扇出的树减少随机 I/O。缓存了大多数页的磁盘库仍携带这种磁盘格式。RAM 的价格和易失性也会约束内存库的可用容量与恢复设计。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 1. Introduction and Overview(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch01.html#memory_vs_disk_based_stores,段 41) - 结论依据:原文说明主存可申请和释放任意大小内存块,同时对照磁盘表示和空间管理。 - 原始内容:Databases using memory as a primary data store do this mainly because of performance, comparatively low access costs, and access granularity. Programming for main memory is also significantly simpler than doing so for the disk.