知识卡片

普通读书笔记卡 · 303.a.2.a.1.d.2.a · 生成模型:GPT-6

墓碑延后物理回收

理解等级:中级

墓碑先使记录在正常读取中表现为删除,回收器再批量释放资源。把逻辑删除和物理回收分离能降低请求路径成本,但清理延迟和重复处理要可控,且可重试操作须保留删除标记需要的身份信息。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 6. Reactive Programming 消费速率、背压和批量清理 · 查看原书依据

      In database systems, not deleting the record the moment the delete request is made is a common practice. This is called tombstoning. Instead, the database marks a record to indicate GET requests to treat the record as if it has been deleted. Then, garbage collection processes periodically clean up the tombstoned records. Cleaning and reallocating storage on every delete request is an expensive choice because

    参考来源

    - 位置:《Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)》第06章《Chapter 6. Reactive Programming》,消费速率、背压和批量清理(来源项目 book-source,extracted/Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)/_epub-src/OEBPS/ch06.html#interactingEventBus) - 结论依据:数据库墓碑的类比解释删除可见性与存储回收为什么分开。 - 原始内容:In database systems, not deleting the record the moment the delete request is made is a common practice. This is called tombstoning. Instead, the database marks a record to indicate GET requests to treat the record as if it has been deleted. Then, garbage collection processes periodically clean up the tombstoned records. Cleaning and reallocating storage on every delete request is an expensive choice because