morletdb

Searching waveforms by shape inside PostgreSQL

With recordings, you often ask: where else did this shape occur, even a little earlier or later? Our first report asks whether PostgreSQL can answer that quickly with a standard vector index, while every hit still points to the exact stored samples. A hit you cannot read back bit for bit is a hint, not evidence.

What we found

Exact search has become faster since the main comparison: a float32 screen with a rigorous error bound (study E7) cut its p95 latency 3.2–3.7× with bit-for-bit identical lists. Probes stayed 1.6–2.3× faster at p95 on galleries of up to 1.03 million windows.

Where it falls short

Read it

Version 0.25, released 8 November 2026 (tag paper-v0.21; 0.21 corrects one speed ratio in the conclusion). A technical report, not peer reviewed. Text and figures under CC BY 4.0, code under Apache-2.0.