Making COUNTs and the Rest of Search Really Fast (Part II)

Ming Ying headshot

By Ming Ying on October 13, 2026

A open tin can spewing out SpaghettiOs labeled Text Search, Condensed, BM25 with counts.

In Part I, we improved ParadeDB’s Top K BM25 performance by orders of magnitude. At the end, we committed to publishing a Part II focusing on COUNT. This post walks through the optimizations that made our COUNT queries much faster. Here’s the end result, using the same Wikipedia dataset and benchmark harness as the original TIN post:

Wikipedia COUNT search8 concurrent clients · 5 minute run

Queries

View

Percentile

↑ Higher is better

Clean tables. One-second buckets reconstructed from each worker's ordered raw query timings and measured start/finish interval; latency uses continuous percentiles. Lines use a centered 9-second moving average; legend values are unsmoothed full-run results.