{
  "slug": "blocked-bloom-filter",
  "term": "Blocked Bloom filter",
  "aliases": [
    "Cache-local Bloom filter"
  ],
  "definition": "A blocked Bloom filter confines all bit probes for a key to one selected block, ideally one cache line, to improve memory locality.",
  "note": "A standard Bloom filter spreads the k probed bits of a key across the whole array. A blocked layout places them in one block that ideally matches a cache line of typically 512 bits, which cuts cache misses per insert or lookup from k to 1. Blocks fill unevenly, so the false-positive rate is higher than for a standard filter of the same size and total fill alone is insufficient to predict it. [choices]\n\nSchmitz, Zentgraf and Rahmann express the cost as space per key. For a false-positive rate of 2^-10, a standard Bloom filter needs 1.443 times the minimum of 10 bits per key, a blocked filter 1.565 times and their variant with two alternative blocks per key 1.456 times. [choices]\n\nParquet uses a split-block design with 256-bit blocks of eight 32-bit words and one bit set per word. Its sizing example of 1024 blocks holding 26,214 hash values, about 10 bits per value, gives a false-positive probability of around 1.26%, rising to 18% at 5 bits per value and falling to 0.04% at 20. [parquet]",
  "related": [
    "vacuum-filter",
    "bloom-filter",
    "partitioned-filter",
    "sstable",
    "counting-bloom-filter"
  ],
  "citations": [
    {
      "id": "choices",
      "title": "Johanna Elena Schmitz, Jens Zentgraf and Sven Rahmann. Blocked Bloom Filters with Choices. SEA 2025, article 25, sections 1-4. DOI: 10.4230/LIPIcs.SEA.2025.25.",
      "url": "https://drops.dagstuhl.de/doi/10.4230/LIPIcs.SEA.2025.25",
      "accessed": "2026-10-22"
    },
    {
      "id": "parquet",
      "title": "Apache Parquet: Bloom Filter, Technical Approach and Sizing an SBBF.",
      "url": "https://parquet.apache.org/docs/file-format/bloomfilter/",
      "accessed": "2026-10-22"
    },
    {
      "id": "hesela",
      "title": "Hesela: finite Bloom probabilities and block load.",
      "url": "https://hesela.com/analyses/bloom-filters-lsm-read-cost/#finite-probability",
      "accessed": "2026-10-17"
    }
  ],
  "status": "shipping",
  "advantages": [
    {
      "text": "Each insert or lookup touches one block, so memory traffic per operation does not grow with the number of probe bits.",
      "citationIds": [
        "choices"
      ]
    }
  ],
  "limitations": [
    {
      "text": "A filter sized for an expected number of values degrades quickly when more are inserted, so the count must be estimated before the filter is built.",
      "citationIds": [
        "parquet"
      ]
    },
    {
      "text": "Variants with two candidate blocks per key must check up to 2 blocks on lookup, which gives back part of the locality gain.",
      "citationIds": [
        "choices"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02",
  "provenance": [
    "choices is the SEA 2025 paper by Schmitz, Zentgraf and Rahmann, re-read on 2026-10-22 in the introduction, Figure 1 and sections 2 to 4.",
    "The 512-bit cache line, the k-to-1 cache-miss reduction and the 1.443, 1.565 and 1.456 overhead factors at a 2^-10 rate come from choices.",
    "parquet is the Apache Parquet Bloom filter specification, re-read on 2026-10-22 in the technical approach and sizing sections.",
    "The 256-bit block, eight 32-bit words, 1024 blocks, 26,214 values and the 1.26%, 18% and 0.04% probabilities come from parquet."
  ]
}
