Skip to main content
vsql_hll estimates how many different values a column holds, such as how many different users visited a site, using a small fixed-size summary called a sketch. Reach for it when an exact COUNT(DISTINCT ...) is too slow, or when you want to store daily counts and combine them into weekly ones without going back to the raw rows.
A third party writes and maintains this extension. VillageSQL does not build, test, or ship it, and the description below follows the maintainer’s own documentation. Read that documentation before you rely on it.

Install

Build it from the repository against a VillageSQL build tree (VillageSQL_BUILD_DIR), copy the .veb file into the server’s veb_dir, then install it:

What it adds

An hll column type stores a sketch, so you can save one and combine it later. Hash every value before you add it to a sketch, and always hash the same kind of value with the same function.

See also