← 返回刚才阅读的位置

知识卡片

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

布隆过滤器跳过缺键文件

理解等级:中级

插入键时对多个哈希的位置置 1;查询时任一位为 0 即确定缺席,可以跳过该 SSTable。所有位为 1 只说明可能存在,仍要读索引验证:不同键设置的位可能恰巧覆盖待查键各位置。按键数、内存和允许的误判率选参数,还要考虑计算哈希的成本。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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#bloom_filter,段 184) - 结论依据:第 183–192 段给出误判边界与 16 位示例。 - 原始内容:In other words, a Bloom filter can be used to tell if the key might be in the table or is definitely not in the table.