Question about bloom filter and cuckoo filter export/import

Hi, all:

According to the command reference, SCANDUMP and LOADCHUNK are very useful to export the filter for persistence. But the commands are designed to scan by iterations, is it possible to add items into filter when executing SCANDUMP command without breaking the structure to load into redis using LOADCHUNK ?


You can add elements to the filter After you have started to save chunks and before retrieving all chunks. But these elements May return a false-negative.

The chunks are simply parts of the filter where we turn-on or check bits. Since some of the hashes may fallen in a chunk that was already retrieved, after reassembling/loading the chunks into the new filter, these bits will be off and thus return a negative answer.

1 Like