Home

Awesome

Bloom filter extension for SQLite

Description

This is a simple bloom filter extension for SQLite. Internally it uses 'buckets' of 64-bit unsigned integers to store the bloomfilter. It uses the Murmur3 hashing function to create a hash.

Installation

Optional: Get the files from github
git clone ...

Initialize the murmur3 submodule. This is a port of murmur3 to C. Please see Peter Scott's repo for details
git submodule init && git submodule update

Compile the module
make module

To play around with murmur3 hashes
make murmur_check

Usage

First, the extension needs to be loaded using
SELECT LOAD_EXTENSION('./libbloom.so');

After that the following functions are provided:

Limitations and bugs

There are probably more bugs and limitations than I can think of, if you come accross any, please let me know.

Limitations:

License

This code is released under the BSD3 license. For a copy of the license please see the LICENSE file.