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
M2: Sharded WAL — 16 WAL writers
Date: Fri Apr 17 10:44:24 PM UTC 2026 Config: ingest_shards=16 (default for 32 cores)
20M Doc Ingest (3 runs, 32 workers, batch=10000)
Run 1
xerj index: complete
═══════════════════════════════════════════════════════════
index : battle-20m
file : /tmp/nginx_20m.ndjson
file size : 8632 MB
docs sent : 20000000
errors : 0
ingest time : 21.79 s
ingest rate : 917709 docs/s (WAL-durable, in-memtable)
final flush : 1.14 s
total elapsed : 22.94 s
total rate : 871980 docs/s (fully segment-durable)
workers : 32
batch size : 10000
═══════════════════════════════════════════════════════════
[2m2026-04-17T22:44:48.131851Z[0m [33m WARN[0m [2mxerj_engine::index[0m[2m:[0m merge: failed to parse stored as RawValue: Serde("invalid type: newtype struct, expected any valid JSON value") at character 0
Run 2
xerj index: complete
═══════════════════════════════════════════════════════════
index : battle-20m
file : /tmp/nginx_20m.ndjson
file size : 8632 MB
docs sent : 20000000
errors : 0
ingest time : 21.64 s
ingest rate : 924221 docs/s (WAL-durable, in-memtable)
final flush : 1.18 s
total elapsed : 22.82 s
total rate : 876401 docs/s (fully segment-durable)
workers : 32
batch size : 10000
═══════════════════════════════════════════════════════════
[2m2026-04-17T22:45:14.575955Z[0m [32m INFO[0m [2mxerj_storage::wal[0m[2m:[0m WAL checkpoint written [3mgeneration[0m[2m=[0m8 [3mmax_seq_no[0m[2m=[0m18498588
Run 3
xerj index: complete
═══════════════════════════════════════════════════════════
index : battle-20m
file : /tmp/nginx_20m.ndjson
file size : 8632 MB
docs sent : 20000000
errors : 0
ingest time : 21.96 s
ingest rate : 910591 docs/s (WAL-durable, in-memtable)
final flush : 2.27 s
total elapsed : 24.23 s
total rate : 825459 docs/s (fully segment-durable)
workers : 32
batch size : 10000
═══════════════════════════════════════════════════════════
Comparison
| Version | Ingest rate | Total rate | Cores used |
|---|---|---|---|
| Single WAL (before) | ~790k/s | ~720k/s | 9/32 (27%) |
| 16 sharded WALs | see above | see above | TBD |