Apex › Storage & databases

Cuckoo filter

A Bloom filter you can delete from. It stores a short fingerprint of each item in a cuckoo table, so it answers membership with a false-positive rate and zero false negatives — but adds delete, which Bloom can't. The trick is partial-key cuckoo hashing: a fingerprint's two buckets are i and i ⊕ hash(fingerprint), self-inverse, so an evicted fingerprint relocates knowing only the fingerprint. Insert / query / delete items and watch fingerprints land, kick on collision, and disappear on delete; overfill it and an insert fails near ~95% load.

More in Storage & databases