AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
test(perf): doc-values skip regresses nothing — the column-served shapes got faster
xerj-orgff52549cfe8b
diff --git a/demo/playbooks/rc12/RESULT-doc-values-skip.md b/demo/playbooks/rc12/RESULT-doc-values-skip.mdindex 123d4ca35..66b0cf7b4 100644--- a/demo/playbooks/rc12/RESULT-doc-values-skip.md+++ b/demo/playbooks/rc12/RESULT-doc-values-skip.md@@ -65,6 +65,51 @@ compatible than the audits assumed.---+## Query latency — nothing regressed, and the two column-served shapes got faster++This was the risk: `agg_terms_on_text` and `sort_on_text` were served **from the+column this change removes**. Losing it should, on the naive reading, make them+slower. It did not.++| query | base | dvskip | ratio |+|---|---:|---:|---:|+| **`agg_terms_on_text`** | 3414.46 | **2546.75** | **1.34x FASTER** |+| **`sort_on_text`** | 1535.11 | 1553.13 | 0.99x (unchanged) |+| `bool_must_filter` | 2846.62 | 2705.97 | 1.05x |+| `function_score` | 4608.30 | 4467.75 | 1.03x |+| `boosting` | 2708.92 | 2659.36 | 1.02x |+| `match_phrase_prefix` | 4369.24 | 4395.82 | 0.99x |++**The terms aggregation on a text field got 1.34x faster by losing its+doc-values column.** Walking a 55 MB column whose every entry is a whole+document body was *slower* than the brute path it now falls back to. So the+column was not merely unused — it was actively worse than its own fallback,+while costing 35.6% of the index.++`sort_on_text` is unchanged, which is the expected outcome for the other+column-served shape.++### The apparent regressions are sub-millisecond noise++| query | base | dvskip | ratio | absolute |+|---|---:|---:|---:|---:|+| `agg_stats_numeric` | 0.20 | 0.24 | 0.85x | **+40 µs** |+| `agg_terms_high_card` | 2.75 | 3.06 | 0.90x | +0.31 ms |+| `agg_terms_low_card` | 0.41 | 0.45 | 0.93x | +40 µs |++These are the shapes `RESULT-fts-reader-cache.md` already flagged as unreadable+as ratios: a 40-microsecond move reads as "0.85x". They are a pass/fail guard,+and they pass — nothing left the sub-millisecond band.++### Full-text wins carry through++This run has **both** changes in, so the full-text numbers reproduce the FTS+reader cache result a third time: `match_text_common` 2.86x, `large_page` 2.64x,+`prefix_text` 2.54x, `wildcard_text` 2.45x, `fuzzy_text` 1.56x, `match_phrase`+1.52x. Consistent with both earlier runs to within ~2%.++---+## CorrectnessES-YAML conformance with this change **and** the FTS reader cache in:diff --git a/demo/playbooks/rc12/results-dvskip.json b/demo/playbooks/rc12/results-dvskip.jsonindex e576df9dc..5896951fd 100644--- a/demo/playbooks/rc12/results-dvskip.json+++ b/demo/playbooks/rc12/results-dvskip.json@@ -20,5 +20,157 @@"xerj_master_key": 64,"sidx": 32,"lock": 8+ },+ "queries": {+ "term_keyword_low_card": {+ "p50_ms": 0.64,+ "p99_ms": 0.864,+ "took_ms": 0,+ "hits": 10000+ },+ "term_keyword_high_card": {+ "p50_ms": 1.517,+ "p99_ms": 1.638,+ "took_ms": 1,+ "hits": 1+ },+ "range_date_narrow": {+ "p50_ms": 0.42,+ "p99_ms": 0.476,+ "took_ms": 0,+ "hits": 50+ },+ "range_long_wide": {+ "p50_ms": 0.391,+ "p99_ms": 0.483,+ "took_ms": 0,+ "hits": 10000+ },+ "match_text_common": {+ "p50_ms": 58.214,+ "p99_ms": 59.233,+ "took_ms": 58,+ "hits": 10000+ },+ "match_text_multi": {+ "p50_ms": 343.315,+ "p99_ms": 365.323,+ "took_ms": 343,+ "hits": 10000+ },+ "match_phrase": {+ "p50_ms": 326.956,+ "p99_ms": 352.125,+ "took_ms": 317,+ "hits": 10000+ },+ "bool_must_filter": {+ "p50_ms": 2705.966,+ "p99_ms": 2724.345,+ "took_ms": 2706,+ "hits": 10000+ },+ "deep_page": {+ "p50_ms": 56.828,+ "p99_ms": 59.895,+ "took_ms": 49,+ "hits": 10000+ },+ "large_page": {+ "p50_ms": 64.122,+ "p99_ms": 65.223,+ "took_ms": 60,+ "hits": 10000+ },+ "sort_by_numeric": {+ "p50_ms": 2.433,+ "p99_ms": 2.563,+ "took_ms": 1,+ "hits": 10000+ },+ "agg_terms_low_card": {+ "p50_ms": 0.447,+ "p99_ms": 0.767,+ "took_ms": 0,+ "hits": 10000+ },+ "agg_terms_high_card": {+ "p50_ms": 3.063,+ "p99_ms": 3.668,+ "took_ms": 2,+ "hits": 10000+ },+ "agg_stats_numeric": {+ "p50_ms": 0.24,+ "p99_ms": 0.336,+ "took_ms": 0,+ "hits": 10000+ },+ "agg_date_histogram": {+ "p50_ms": 17.054,+ "p99_ms": 17.42,+ "took_ms": 16,+ "hits": 10000+ },+ "agg_histogram_numeric": {+ "p50_ms": 10.148,+ "p99_ms": 10.707,+ "took_ms": 9,+ "hits": 10000+ },+ "agg_nested_terms_stats": {+ "p50_ms": 3.364,+ "p99_ms": 3.94,+ "took_ms": 3,+ "hits": 10000+ },+ "boosting": {+ "p50_ms": 2659.36,+ "p99_ms": 2683.803,+ "took_ms": 2664,+ "hits": 10000+ },+ "function_score": {+ "p50_ms": 4467.752,+ "p99_ms": 4490.701,+ "took_ms": 4455,+ "hits": 10000+ },+ "match_phrase_prefix": {+ "p50_ms": 4395.817,+ "p99_ms": 4533.83,+ "took_ms": 4437,+ "hits": 10000+ },+ "fuzzy_text": {+ "p50_ms": 195.853,+ "p99_ms": 198.51,+ "took_ms": 192,+ "hits": 10000+ },+ "wildcard_text": {+ "p50_ms": 73.604,+ "p99_ms": 74.937,+ "took_ms": 72,+ "hits": 10000+ },+ "prefix_text": {+ "p50_ms": 67.202,+ "p99_ms": 70.054,+ "took_ms": 65,+ "hits": 10000+ },+ "agg_terms_on_text": {+ "p50_ms": 2546.753,+ "p99_ms": 2677.104,+ "took_ms": 2550,+ "hits": 10000+ },+ "sort_on_text": {+ "p50_ms": 1553.129,+ "p99_ms": 1573.632,+ "took_ms": 1531,+ "hits": 10000+ }}}\ No newline at end of file