Repository navigation
Releases
v0.1.131
No bucket format change from v0.1.130: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
- Warm filtered vector scans reuse bounded node lists in code order. NB1 throughput at 16 clients rose 43% for
bucket < 50, 35% forlang = de, and 37% forbucket < 10. A list is built only when a filter mask repeats and never under a lock, so changing masks (a write stream) scan no slower than before. The scan checks returned identical ranked IDs and distances. See Round F4 and Round F4b.
v0.1.130
No bucket format change from v0.1.129: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
- Filtered vector queries and scalar or string projections can use the typed warm-graph path. It writes the winners' values directly into response bytes and accepts up to eight named attributes. Filtered traffic keeps its graph warm, and graph search, hydration, and tail scoring share a CPU-worker dispatch. In the SF2b NB1 rerun,
bucket < 50,lang = de, and the unfiltered["bucket","lang"]projection improved by 11.5%, 4.0%, and 12.0% at 16 clients. Unfiltered["id"]was 10.2% slower with a wider independently calibrated beam and 4.9% faster at matchedef=232.blowfish_typed_queries_total{shape}counts typed answers. See Round SF2.
v0.1.129
No bucket format change from v0.1.128: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
- A hybrid request's vector leg now heats, calibrates, and is served by the warm graph, so a namespace queried only with hybrid requests earns its graph. Hybrid 50 plus 50 on NQ 2.68M costs 1.95 times less server CPU at 16 clients (28 against 55 CPU-ms, eventual, paired on one m7gd.2xlarge), with nDCG@10 0.5171 against 0.5170 and no plain-vector regression. Round HV1 in docs/benchmarks.md.
- BM25 over two fields takes 1.7 to 1.8 times less CPU at limit 10 and limit 50, boosted BM25 takes 4.5 times less, and hybrid (BM25 plus vector, RRF) 1.4 times less, on a namespace of a few dozen segments (BEIR NQ, 2.68M rows, paired against v0.1.126 at 16 clients: BM25 limit 10 8.8 against 14.7 CPU-ms and 510 against 321 q/s, limit 50 12.9 against 23.4 and 359 against 209 q/s,
Sumof both fields plus0.05 * popularity12.8 against 58.3 and 341 against 97 q/s, hybrid 26.9 against 38.1 and 191 against 137 q/s; every answer is bit-identical). A staged round now passes the first clause's per-window score bounds to the second: a window (and a row) in which the first clause at its cap plus the second clause's bound cannot reach the lower bound for thekth total is skipped, about 10 times fewer windows scored. A boost over both fields (a monotone function of one attribute, bounded by the attribute's actual largest value) takes the staged path instead of the unstaged ladder. The small-term bound pass prefetches the row lengths it reads, a reader memoizes its term lookups, a term no longer builds a per-window span table on every call, and the first staged list is 1,024 rows at every limit up to 64. No setting was added and no format changed.
v0.1.128
No bucket format change from v0.1.127: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Fixed
- Under a 12 GiB memory limit or less, queries on a large namespace ran on the plain reader instead of the compiled tier, because the tier (0.9 GB for 2.68M 1,024-dimension rows) was held to three eighths of the decoded cache and refused. The compiled tier now lives in its own pool of the decoded cache's size (a quarter of the limit), and its exact-vector cache takes what is left beside the codes. On 2.68M NQ rows at 16 clients, 8 GiB goes from 300 q/s to 1,520 and 4 GiB from 268 to 1,504, the same as with 24 GiB (1,513), with the same top 10 for 1,000 queries. The pool shares one allowance with the general cache, so a tier cannot sit beside a hot set of text readers in a small limit (BM25 and hybrid at 4 GiB were killed by the kernel in the first draft; now they match the numbers without the tier, 43 to 45 q/s BM25 and 26 q/s hybrid, against 39 and 26). A new version of a tier replaces the old one at once, and the pool's resident bytes count against the warm graph and slab builds. Details are in Round MC1b.
- A hybrid (RRF) query could lose a row from one leg when the other leg returned the same row. The legs read different columns (an ANN leg that names no attributes reads none), and when both returned an ID the later leg's narrower document replaced the earlier one's, so the first leg was ranked again without the attributes its filter or boost reads (a boosted BM25 leg with a filter lost its top rows, which then ranked once instead of twice in the fusion). The legs' documents are now merged, keeping every attribute either read. The same leg alone, plain BM25, an attribute-only rank, and a filtered ANN leg were never affected on their own. The property test now includes boosts and a filtered ANN leg.
v0.1.127
No bucket format change from v0.1.126: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
- A plain vector query that sends
include_attributes: ["id"](or[]) now takes the typed ID-only path, about 2.1 times the q/s with eventual consistency on a warm graph (BEIR NQ, 2.68M rows, 16 clients, paired against v0.1.126: 7,452 against 3,581 q/s; p50 at one client 0.7 against 1.3 ms). The benchmark client sends this list, and it used to run the general path. Answers are identical (byte for byte in tests, strong and eventual). Strong queries are unchanged, since the bucket check dominates them. No setting and no format change. See Round SF1 indocs/benchmarks.md.
v0.1.126
No bucket format change from v0.1.125: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
- BM25 over two fields takes half the CPU at limit 10 and limit 50, and hybrid (BM25 plus vector, RRF) about half, on a namespace of a few dozen segments (BEIR NQ, 2.68M rows, paired against v0.1.125 at 16 clients: BM25 limit 10 15.5 to 16.5 against 30.3 to 33.9 CPU-ms and 301 to 330 against 151 to 164 q/s, limit 50 21.5 to 22.4 against 42.9 to 45.1, hybrid 27.4 to 28.7 against 54.4 to 57.3 and 175 to 188 against 89 to 98 q/s), because a two-field
Sumover several segments runs in stages that share one floor per clause. The cheap clause (title) is listed above a floor shared by every segment, the expensive clause (text) is scored for those rows, and theirkth total gives a lower bound that fixes the floor the expensive clause is searched with, so it scores about 21 windows per segment instead of about 160. Answers are identical (the ids and distances of 100 NQ queries, and the property test against the exhaustive path); no setting and no format change. See Round H2 in docs/benchmarks.md.
v0.1.125
No bucket format change from v0.1.124: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
- A small namespace with no recluster tier answers vector queries from the resident exact scan, about 5 times less CPU per query (8.2 to 1.6 ms) for tenants of 1,000 to 5,000 rows. The scan (Round T11) used to run only beside a tier, so every small tenant went through the IVF plan, which reads, checks, and converts every row of a segment that small. Now a namespace with no tier whose segments are all small (16,384 rows or fewer) and an unfiltered cosine query is scored exactly from prepared blocks in the decoded cache. A segment's block is built on its second query, so tenants asked about once never occupy the cache. The second query of a cold small namespace therefore reads its index object to build the block (one extra read round, once), and speculative, recall-sample, and other non-admitting runs neither count as a touch nor build. Builds are bounded to half the query workers at a time and run their CPU work on the worker pool. Recall@10 is 1.0000. The hot set is now resident (about 3 KB per row, charged to the decoded cache). No setting and no format change. See Round ST1 in
docs/benchmarks.md.
v0.1.124
No bucket format change from v0.1.123: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
lang = de-style filters (a fifth of the rows, correlated with the vectors) answer 4 times faster on the warm graph (298 to 1,184 queries per second at 16 clients, recall 0.982 to 0.999, p90 22.8 ms to 3.3 ms on NB1's 1M rows), and the 1-to-5 percent filters 1.2 to 1.4 times. A filter between 1 in 8 and 1 in 3 of the rows first walks a 64-row pilot: a query whose neighbors pass gets a beam sized to its own pass rate (about 400 where it was 2,000), and one whose neighbors do not goes to the code scan, which now answers filters up to 1 in 4 of the rows instead of running its whole beam, finding too few rows, and falling to the IVF probes. The scan's screen is 1,000 rows plus 100 per wanted row where it was 5,000 (recall@10 0.9998 or better on NB1's 1 to 5 percent filters). Heat now charges each tier its own vector stage instead of the whole query's CPU once per tier, and counts a filtered query only where a graph could serve it (a page of more than 10 rows under a filter broader than 1 in 8 no longer does).- A node with 10,000 tenants (987K rows, a Zipf-like mix of 20 to 3,000 rows each) has every row in a segment 140 s after a load ends instead of 259K of them after 40 minutes, holds 1.0 GB of RSS after indexing instead of 7.3 GB, and answers a tenant's first query as fast as a repeat (long-tail p90 14 ms instead of 63 ms), because the indexer works on namespaces concurrently instead of one at a time. The sweep did every step for one namespace at a time (about two dozen dependent object-store round trips for a 40-row namespace, and every namespace's garbage collection inline every 60 s), so it was a single request stream. Now each namespace's work runs in its own task, at most one at a time per namespace so its publications stay in order, with as many tasks as the store's connection budget allows (
fetch_concurrencydivided by the 8 requests a pass has in flight at its peak, 64 by default) and a memory budget on the tails they build (max_unindexed_bytes, so a large namespace builds under the bound it always had). Namespaces with work go first; an idle namespace is checked for another writer with one HEAD of the next WAL slot, at most 100 a second in total (it was a whole pass of requests per namespace per sweep), and garbage collection is spread over its half-retention round. A pass reads without admitting to the block caches (it reads each segment once and then retires it), which kept 2 GB of one-pass blocks out of memory at 10,000 tenants. After a namespace of at most 1,024 rows is first indexed, one nearest-neighbor query (and one text query) warms the disk block cache only (nothing enters memory), so a first query costs one round trip instead of three; without a disk cache nothing is primed. No setting changes. New metrics:blowfish_indexer_visits_total{class}andblowfish_indexer_passes_total. Measured on one m7gd.2xlarge with real S3 and NB3's dataset; ingest and warm queries of a single namespace are unchanged (Round MT1 indocs/benchmarks.md).
v0.1.123
No bucket format change from v0.1.122: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
- Bulk ingest with indexing off is 1.87 times faster, and 1.13 times faster end to end at 16 clients, because a commit no longer copies the whole unindexed tail. Publishing a write used to deep-copy the namespace's unindexed rows (the document, mark, and shadow maps) and then drop the old copy: 14 ms per 5,000-row commit at 100,000 rows in the tail, 70 ms at 700,000, with the commit's lock held the whole time, which capped writers at about 25K rows per second whatever the CPU. The tail is now held in persistent maps, so a commit shares the earlier rows (replay at 800,000 rows falls from 70 to 2.4 ms), and the commit's byte count comes from the vector strings' lengths instead of serializing the entry a second time (45 to 4 ms). On the W16 load (800,000 rows, 5,000-row bodies of 1,024-dimension f16, 16 clients) ingest alone goes from 22.9K to 43.0K rows per second with write p90 0.41 times, and end to end from 27.4K to 31.0K rows per second with p90 unchanged and 1.16 times the peak memory. Documents and query results are identical. No setting and no format change. See Round W17 in
docs/benchmarks.md. - BM25 over two fields and hybrid (BM25 plus vector, RRF) queries are 4 to 10 times faster at 16 clients on a namespace of a few dozen segments (BEIR NQ, 2.68M rows: BM25 78 against 19.9 q/s and hybrid 47.3 against 8.7 q/s with NB2's parameters, 9.6 and 10.1 times when paired), because the decoded cache no longer evicts the text readers on every query and a
Sumover several segments is decided once. A text reader was charged a flat 17 MB for window maxima it holds only as they grow, so 50 readers overflowed the cache and each query rebuilt their dense-term arrays; the warm ANN tier and the readers then evicted each other in a hybrid query, and each segment proved and hydrated its own top 10. Readers are now charged their real size, a large view displaces only entries unused for 1,024 accesses, and one decision across all segments accepts against the global kth score and hydrates only the winners. Answers (ids, order, and score bits) are identical, checked against the exhaustive path by a random-request test. - A namespace that is queried only with filters now gets its warm graph, and a hot one gets it in about 8 minutes instead of 16 (or never). Filtered vector queries (up to
top_k100) now count as heat, and the 10-minute heat dwell ends early (never under 60 s) once a tier's queries have cost a quarter of its build's estimated CPU. On 1M multilingual 1,024-d vectors, filtered queries at 16 clients ran 4 to 64 times faster than the same server before it had a graph (for example 1,830 against 38 q/s at a 5 percent filter), with recall unchanged to within 0.02. Quiet namespaces wait the full 10 minutes as before. No new setting. - The warm graph's source read is 6.5 times faster (181 s to 28 s for 1M rows), so a graph is built 1.7 times sooner (384 s to 232 s) and serves about 150 s earlier. The build read each leaf cluster from object storage one round trip at a time; it now keeps up to 16 reads in flight, in order, with the bytes in flight capped at 32 MiB. The graph is the same.
- Eventual-consistency ID-only vector queries are now answered from the resident warm graph with no WAL probe, as the general path answers them (about 3 times faster at 1 client on a local fixture), and strong queries on a trusted single writer skip the probe too.
Fixed
blowfish serveno longer panics on SIGTERM against S3 with "A Tokio 1.x context was found, but it is being shutdown". Shutdown dropped the I/O runtime while blocking threads that drive yielded queries (and reactor threads whose requests had timers and sockets registered on their own runtimes) were still polling it, which only shows when a request waits on the network or timers, as S3 requests do. Shutdown now stops accepting, drains requests for the grace period, drops the connections of any that remain and joins the reactor threads, cancels yielded queries, and waits for every blocking thread that drives one before the runtime is dropped. If one is still running (a long CPU-bound step), the process exits without shutting the runtime down. Acknowledged writes are in the WAL before they are acknowledged, so none are lost.
v0.1.122
No bucket format change from v0.1.121: a drop-in binary swap. (v0.1.104 added an optional manifest field that v0.1.103 and older refuse: roll back past v0.1.104 only from a pre-upgrade backup. Once v0.1.97 or later runs a vector base build, v0.1.96 and older cannot read that namespace's manifest. v0.1.93 introduced text segment format 9: v0.1.92 and older cannot read it. If you run v0.1.87 to v0.1.91, upgrade: those versions loop re-uploading format-7 text objects.)
Changed
- A single-writer server answers strong-consistency queries from its in-memory state, with no request to the bucket, while that state was committed or refreshed in the last 5 seconds. Strong 1-client p50 falls by one bucket round trip (about 8 ms in-region) and is within noise of eventual. Read-only replicas and multi-writer servers still probe the WAL on every strong query.