Skip to content

armgit / xerj

Public Imported from GitHub
0

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.

26.3 KB
Raw Blame

Rust Search Engine & Database Ecosystem — Research Data Points (2025)

Collected from 8 targeted web searches. 60+ data points covering Tantivy, Sonic, Quickwit, Meilisearch, SeekStorm, ParadeDB, LanceDB, Qdrant, SurrealDB, and the broader Rust database ecosystem.

# Quote/Summary Source Date Category
1 "Tantivy is a full-text search engine library inspired by Apache Lucene and written in Rust" — reimagines Lucene's design with modern performance optimizations, embedded into applications rather than running as a separate service GitHub - quickwit-oss/tantivy 2025 Tantivy / Architecture
2 "Tantivy runs approximately twice as fast as Lucene in benchmarks, with a search library that starts up in under 10 milliseconds" [Tantivy – full-text search engine library inspired by Apache Lucene HN](https://news.ycombinator.com/item?id=40492834) 2025
3 "As of Apache Lucene version 10.3, Apache Lucene is now on par with Tantivy on most queries and even faster on some queries" — closing the performance gap from earlier 2x advantage [Why is Tantivy faster than Lucene? Adrien's blog](https://jpountz.github.io/2025/04/12/why-is-Tantivy-faster-than-Lucene.html) Apr 2025
4 Tantivy's COUNT optimization skips iterating bit sets and counts set bits using popcnt instructions — when a similar change was merged to Lucene, it improved Lucene performance by 60% [Why is Tantivy faster than Lucene? Adrien's blog](https://jpountz.github.io/2025/04/12/why-is-Tantivy-faster-than-Lucene.html) Apr 2025
5 Tantivy's single level of skip data encouraged Lucene to explore using only 2 levels (vs 10 previously), yielding a 33% speedup on Lucene's CountAndHighMed task [Why is Tantivy faster than Lucene? Adrien's blog](https://jpountz.github.io/2025/04/12/why-is-Tantivy-faster-than-Lucene.html) Apr 2025
6 "Tantivy and PISA implement block-max WAND while Lucene implements block-max MAXSCORE, two state-of-the-art approaches for dynamic pruning" [Why is Tantivy faster than Lucene? Adrien's blog](https://jpountz.github.io/2025/04/12/why-is-Tantivy-faster-than-Lucene.html) Apr 2025
7 "Tantivy's Rust foundation delivers memory safety and speed, outperforming Java Lucene by 5-8x in indexing throughput" Tantivy Lucene Rust: Python FFI for High-Performance Full-Text Search 2025 Tantivy vs Lucene
8 "Tantivy Python Rust bindings deliver Lucene-inspired full-text search at native Rust speeds (up to 20x faster indexing) compared to pure Python alternatives like Whoosh" Tantivy Python Rust: Lucene Inspired Full-Text Crate Bindings 2026 2025–2026 Tantivy / Performance
9 "Overall indexing throughput increased by ~40% in a benchmark using the GitHub dataset" in Tantivy 0.22 [Tantivy 0.22 Quickwit](https://quickwit.io/blog/tantivy-0.22) 2024
10 Tantivy 0.22: TopDocs collector gained >15% average query performance improvement using TopNComputer over binary heap [Tantivy 0.22 Quickwit](https://quickwit.io/blog/tantivy-0.22) 2024
11 Tantivy 0.22: "SSTable loading is now free by using fst for the sstable index, eliminating the need to scan and load the sstable index into memory" [Tantivy 0.22 Quickwit](https://quickwit.io/blog/tantivy-0.22) 2024
12 Tantivy 0.22: "Aggregations are faster by using a fast path for full columns in fetch_block, increasing performance for certain aggregation queries by 5%" [Tantivy 0.22 Quickwit](https://quickwit.io/blog/tantivy-0.22) 2024
13 Tantivy 0.22 added schemaless aggregations via the JSON type — custom data types can be indexed without copying [Tantivy 0.22 Quickwit](https://quickwit.io/blog/tantivy-0.22) 2024
14 "Tantivy has implemented Block WAND, with performance on TOP-K on term-unions greatly increased" — but BooleanQuery falls back to generic scorer when must/must-not clauses are present Implementing Block WAND optimization · Issue #2390 · quickwit-oss/tantivy 2025 Tantivy / Algorithm
15 Sonic is written in Rust "a modern programming language focused on safety that provides a compiled binary and does not have a garbage collector, which would interfere with Sonic's real-time memory management needs" Sonic: A Lightweight, Schema-Less Search - InfoQ Production Sonic / Architecture
16 Sonic "responds to search queries in the μs range, eats ~30MB RAM and has a low CPU footprint" under load — runs half a billion indexed objects on a $5/mo 1-vCPU server GitHub - valeriansaliou/sonic Production Sonic / Performance
17 Sonic promoted as the "Redis of search" — uses LSMs via RocksDB for storage plus FSTs for suggestions/autocomplete; schema-less design [Sonic: Fast, lightweight and schemaless search back end in Rust HN](https://news.ycombinator.com/item?id=19471471) Production
18 Sonic "provides additional features including typo corrections in queries, query term auto-complete, and Unicode support for over eighty languages" Sonic: A Lightweight, Schema-Less Search - InfoQ Production Sonic / Features
19 Quickwit is "the first engine to execute complex search and analytics queries directly on cloud storage with sub-second latency. Powered by Rust and its decoupled compute and storage architecture" [What is Quickwit? Quickwit](https://quickwit.io/docs/overview/introduction) 2025
20 "Datadog acquired Quickwit [in January 2025] to boost their log management tools" — released major update under Apache License 2.0 post-acquisition [Quickwit joins Datadog Quickwit](https://quickwit.io/blog/quickwit-joins-datadog) Jan 2025
21 "Mezmo recently put into production Quickwit to serve thousands of customers and petabytes of logs, drastically reducing infrastructure cost and complexity" [Quickwit: A Comprehensive Guide Medium](https://medium.com/@moeinkolivand97/quickwit-a-comprehensive-guide-84cfd775e790) 2025
22 Quickwit 0.8: "indexing at 1PB/day and searching through 50 PB" — largest user reached 14 million docs/sec using 200 pods, each with 6 vCPUs and 8GB RAM [Quickwit 0.8: Indexing and Search at Petabyte Scale Quickwit](https://quickwit.io/blog/quickwit-0.8) 2024
23 Quickwit's largest user achieved 1 PB/day indexing = 13.4 GiB/s = 14 million docs/s Quickwit log search at PetaByte scale - vInfrastructure Blog 2024 Quickwit / Scale
24 Quickwit "handles petabyte-scale data with minimal infrastructure — often just a few nodes — while providing 10x cost efficiency over alternatives like Elasticsearch or Datadog" [Quickwit: A Comprehensive Guide Medium](https://medium.com/@moeinkolivand97/quickwit-a-comprehensive-guide-84cfd775e790) 2025
25 Quickwit architecture splits indexers, searchers, metastore, control plane, and janitor — each horizontally scalable independently, built on Tantivy [What is Quickwit? Quickwit](https://quickwit.io/docs/overview/introduction) 2025
26 "Meilisearch is 100% coded in Rust" and maintains 20+ integrations in 8 languages; designed for sub-50ms search responses with built-in typo tolerance, filtering, faceted search, and geosearch [Enterprise-grade search solution Built for growth](https://www.meilisearch.com/solutions/enterprise) 2025
27 "A single server with modest RAM capable of handling millions of documents with sub-50ms search latency, using memory-mapped architecture that efficiently uses available RAM without requiring large heap allocations" Elasticsearch Pricing: Worth It or Consider Meilisearch? 2025 2025 Meilisearch / Performance
28 Meilisearch can technically handle up to 4.3 billion documents per index, optimized for datasets in the millions to hundreds of millions range — runs on a single node Comparison to alternatives - Meilisearch Documentation 2025 Meilisearch / Scale
29 Elasticsearch requires at least 50% of system RAM for heap space; production clusters often need 3–6 nodes at 4–16GB RAM each — "significant infrastructure costs whether self-hosted or cloud-managed" Elasticsearch Pricing: Worth It or Consider Meilisearch? 2025 2025 Meilisearch vs ES
30 Meilisearch performance: on 4 vCPUs Typesense handled 104 concurrent search queries/sec at 11ms avg on 2.2M documents; Meilisearch uses memory-mapped files vs Typesense's RAM-resident index Meilisearch vs Typesense 2025 Meilisearch / Performance
31 One company (Radar) "shut down multiple Mongo clusters, a large Elasticsearch cluster, and several geo microservices, saving high five-figures in monthly costs" by migrating to a Rust-based solution (HorizonDB) How we replaced Elasticsearch and MongoDB with Rust and RocksDB 2025 Rust / Cost Savings
32 OpenObserve (Rust + DataFusion + Parquet) achieves "140x lower storage costs" vs Elasticsearch with "single binary deployment" — 80% less infrastructure than legacy observability stacks GitHub - openobserve/openobserve 2025 OpenObserve / Cost
33 "OpenObserve achieves search performance comparable to Elasticsearch on one-fifth the infrastructure while delivering 10x better analytics performance" OpenObserve lowers observability storage costs by 140x - Techzine Global 2025 OpenObserve / Performance
34 OpenObserve is "an open-source observability platform for logs, metrics, traces, and frontend monitoring" written in Rust using DataFusion query engine with columnar Parquet storage GitHub - openobserve/openobserve 2025 OpenObserve / Architecture
35 ParadeDB pg_search: "on a table with one million rows, pg_search indexes 50 seconds faster than tsvector and ranks results 20x faster, with indexing and search times nearly identical to those of a dedicated Elasticsearch instance" [pg_search: Elastic-Quality Full Text Search Inside Postgres ParadeDB](https://www.paradedb.com/blog/introducing-search) 2025
36 ParadeDB pg_search is built on Tantivy (Rust) via pgrx — "BM25 algorithm directly in PostgreSQL" eliminating the need for a separate search service pg_search: Full text search for PostgreSQL using BM25 2025 ParadeDB / Architecture
37 ParadeDB designed and architected pg_search's new block storage layout in early 2025 — embedding the inverted index directly in PostgreSQL shared memory and later disk-based segments [A New Postgres Block Storage Layout for Full Text Search ParadeDB](https://www.paradedb.com/blog/block-storage-part-one) 2025
38 SeekStorm: "sub-millisecond full-text search library & multi-tenancy server in Rust — in production since 2020, Rust port in 2023, open sourced in 2024" GitHub - SeekStorm/SeekStorm 2024 SeekStorm / History
39 SeekStorm Rust port achieved "2-4x performance gain vs. C# (latency and throughput) — no slow first run (no cold start costs due to just-in-time compilation)" SeekStorm - Search as a Service 2024 SeekStorm / Performance
40 SeekStorm "achieves algorithmic performance boosts similar to proprietary hardware accelerators (FPGA/ASIC) or clusters on a single commodity server" — maintains low latency even for billion-scale indices GitHub - SeekStorm/SeekStorm 2024 SeekStorm / Performance
41 LanceDB: "both Lance (the data format) and LanceDB (the database) are written entirely in Rust" — "fast vector search with state-of-the-art indexing to search billions of vectors in milliseconds" GitHub - lancedb/lancedb 2025 LanceDB / Architecture
42 LanceDB "supports vector similarity search, full-text search and SQL, and can store, query and filter vectors, metadata and multimodal data (text, images, videos, point clouds, and more)" lancedb - Rust 2025 LanceDB / Features
43 Qdrant (Rust vector DB) raised $50M Series B — total funding $87.8M; investors showed confidence in "Rust-based architecture and composable vector search approach" [Qdrant raises $50M in funding to fuel vector database growth TechTarget](https://www.techtarget.com/searchdatamanagement/news/366640132/Qdrant-raises-50M-in-funding-to-fuel-vector-database-growth) 2024–2025
44 Qdrant "written in Rust, which makes it fast and reliable even under high load" — DistX (Rust-native alternative) claims 6x faster search than Qdrant on its benchmarks DistX: High-performance vector database in Rust - 6x faster search than Qdrant 2025 Qdrant / Competitors
45 SurrealDB (multi-model Rust database) raised $23M; announced nightly/beta crate releases with monthly stable cadence [Introducing Nightly and Beta Rust Crates Blog SurrealDB](https://surrealdb.com/blog/introducing-nightly-and-beta-rust-crates)
46 crates.io ecosystem: "100,000+ packages, with 1,000+ packages with 1M+ downloads and 50+ packages with 100M+ downloads" — database and search libraries among fastest growing categories [Rust in 2025: The Ecosystem Finally Feels Complete Medium](https://medium.com/beyond-localhost/rust-in-2025-the-ecosystem-finally-feels-complete-d8d8ce90dff2) 2025
47 "Nearly half of all organizations (48.8%) now report making non-trivial use of Rust, up from 38.7% in 2023 — a 10-point jump in two years that is described as structural" Nearly half of all companies now use Rust in production, survey finds - The New Stack 2025 Rust Adoption
48 Between 2021 and 2024 there was "a 68.75% increase in the proportion of Rust developers using Rust commercially" — top enterprise domain is server-side/backend at 51.7% Nearly half of all companies now use Rust in production, survey finds - The New Stack 2025 Rust Adoption
49 "For the ninth year in a row, the 2024 Stack Overflow Developer Survey named Rust the language that most developers used and want to use again, with an 83% admiration rate" [Technology 2025 Stack Overflow Developer Survey](https://survey.stackoverflow.co/2025/technology/) 2025
50 "84.8% say Rust has helped them achieve their goals, 78.5% say adoption was worth the cost, and 65.4% say they would use it again" — enterprise Rust users [Rust in Industry: Case Studies and Success Stories in 2025 Andrew Odendaal](https://andrewodendaal.com/rust-industry-adoption/) 2025
51 Major orgs using Rust in production: Microsoft in low-level Windows components, Google in Android OS, Amazon built Firecracker in Rust, Meta added Rust as formally supported server-side language 2025 Will Be the Year of Rust — Why Big Tech Is Ditching C++ - DEV Community 2025 Rust Adoption
52 QCon San Francisco 2024 talk: "Rust: A Productive Language for Writing Database Applications" — reflects growing enterprise interest in Rust for database-layer development [QCon San Francisco 2024 Rust: A Productive Language for Writing Database Applications](https://qconsf.com/presentation/nov2024/rust-productive-language-writing-database-applications) Nov 2024
53 "Rust gives the developer direct control over memory using a unique ownership and borrowing model enforced at compile time, guaranteeing memory safety without needing a Garbage Collector" — versus Java GC overhead and unpredictable pauses [Rust vs. Java: Choosing the Right Tool for Your Next Project JetBrains](https://blog.jetbrains.com/rust/2025/08/01/rust-vs-java/) Aug 2025
54 "For raw CPU work, Rust achieves the smallest tail latency and the best throughput in benchmark tests" — outperforms Java JVM-limited workloads [Query Speed Wars: Java vs Go vs Rust in the Ultimate Database Benchmark Medium](https://medium.com/@kanishksinghpujari/query-speed-wars-java-vs-go-vs-rust-in-the-ultimate-database-benchmark-d14e066401f9) 2025
55 Rust benchmark: "nearly 160,000 requests per second on two CPU cores, outperforming equivalent Go implementation in both throughput and tail latency while consuming less CPU overhead" [Rust vs Go Performance in 2025: Comprehensive Benchmark Tests Markaicode](https://markaicode.com/rust-vs-go-performance-benchmarks-microservices-2025/) 2025
56 "Rust web servers typically consume 50-80 MB of RAM for production workloads, while equivalent Go services float at 100-320 MB — a 2-4x difference that translates directly to infrastructure cost at scale" — can reduce cloud bills 30%+ Rust vs Go [2026]: 1 Clear Winner After 7 Tests - Tech Insider 2026 Rust / Memory Efficiency
57 "GC cycles consume CPU resources (typically 1-3% overhead), memory usage is higher because the GC needs headroom to operate efficiently, and latency can spike unpredictably during collection pauses" Rust 2025: Memory Safety and GC-Free Performance for Critical Infrastructure Nov 2025 GC Elimination
58 Discord migrated Read States (11 million concurrent users) from Go to Rust: eliminated GC spikes every 2 minutes, reduced latency "6.5x faster in the best case, 160x faster in the worst case", cut memory 40% Why Discord is switching from Go to Rust Case Study GC Elimination
59 "Rust provides predictable latency with no unexpected collection pauses interrupting program execution — while GC-managed languages can experience pauses proportional to heap size, Rust's destructor execution time depends only on the local scope being exited" Rust 2025: Memory Safety and GC-Free Performance for Critical Infrastructure Nov 2025 GC Elimination
60 P99 CONF 2025: ScyllaDB's Pawel Pery explained decoupling a Rust-based vector engine for high-performance ANN queries — "if database architecture already handles the long tail at the storage layer, vector workloads inherit that speed for free" P99 CONF 2025 Recap: Latency to LLMs - ScyllaDB Oct 2025 Rust / Low Latency
61 "Systems optimized for p99 often use languages such as C++ or Rust for critical components to eliminate garbage collection pauses" [Why Tail Latency Matters and How C++ & Rust Beat Java/C# in Core Systems Medium](https://medium.com/@vn44/why-tail-latency-matters-and-how-c-rust-beat-java-c-in-core-systems-8497fd74b2dc) 2025
62 "Turso is rewriting SQLite in Rust, and Neon rebuilt its I/O stack with tokio and io_uring" — major 2025 engineering investments leveraging Rust for latency-critical systems P99 CONF 2025 Recap: Latency to LLMs - P99 CONF Oct 2025 Rust / Databases
63 WebAssembly plugin systems: "applications can use Wasm to allow users or third parties to securely extend their functionality — a database could allow user-defined functions written in any Wasm-compilable language, running in isolation and efficiently" Building a plugin system - WebAssembly Component Model - DEV Community 2025 Rust + WASM
64 "The most popular WebAssembly runtimes are wasmtime and wasmer, both written in Rust" — wasmtime supports Component Model natively with filesystem sandboxing, network access control, and plugin loading [Building Native Plugin Systems with WebAssembly Components Sy Brand](https://tartanllama.xyz/posts/wasm-plugins/) 2025
65 pg_extism: uses pgrx + Extism Rust SDK to create a PostgreSQL extension that runs Extism WASM plugins, enabling user-defined functions from any language inside Postgres Bringing WebAssembly to PostgreSQL using Extism 2025 Rust + WASM + DB
66 "WASI just reached 'preview 2,' and Rust can target 'wasip2' to create the latest Components" — WASM Component Model becoming standard for extensible database plugins [A Gentle Introduction to WebAssembly in Rust (2025 Edition) Medium](https://medium.com/@mtolmacs/a-gentle-introduction-to-webassembly-in-rust-2025-edition-c1b676515c2d) 2025
67 GlueSQL: "SQL database fully written in Rust with WebAssembly support" — demonstrates Rust DB running natively in browser and serverless WASM environments Announcing GlueSQL: SQL database fully written in Rust & WebAssembly support 2025 Rust + WASM + DB
68 "Rust-based alternatives consistently offer 60-90% infrastructure cost reductions compared to Elasticsearch, primarily due to more efficient memory usage and simpler operational requirements" [Best Elasticsearch Alternatives 2026 OpenObserve](https://openobserve.ai/blog/elasticsearch-alternatives/) 2025–2026
69 Grab (ride-hailing) Rust migration "cuts costs 70%" — representative of wave of enterprise migrations from JVM services to Rust for backend and data infrastructure [Rust Migration Cuts Costs 70%: Grab's Infrastructure Win byteiota](https://byteiota.com/rust-migration-cuts-costs-70-grabs-infrastructure-win/) 2025
70 "In 2025, Cargo has become even more powerful with parallel builds, improved incremental compilation, and integrated linting" — toolchain maturity reducing Rust adoption friction Rust Ecosystem Trends in 2025 2025 Rust Ecosystem
71 The State of Rust 2025 (JetBrains): Rust's ecosystem "more dynamic, mature, and diverse than at any point in its history" — tooling plays central role in accelerating adoption [The State of Rust Ecosystem 2025 The RustRover Blog](https://blog.jetbrains.com/rust/2026/02/11/state-of-rust-2025/) Feb 2026
72 SeekStorm vs Lucene/Tantivy benchmark uses the open-source search_benchmark_game — SeekStorm claims sub-millisecond latency maintained even at billion-scale indices on single commodity servers GitHub - SeekStorm/search-benchmark-game 2024 SeekStorm / Benchmark
73 Tantivy hypothetical S3-backed search: warm NVMe cache with Tantivy enables sub-second cloud-native search — pattern mirrored in Quickwit's production architecture A hypothetical search engine on S3 with Tantivy and warm cache on NVMe 2025 Tantivy / Architecture
74 Typesense (C++ search engine) serves "more than 10 billion searches per month" on Typesense Cloud — demonstrates scale achievable by non-GC search engines, though written in C++ not Rust [Typesense Open Source Alternative to Algolia + Pinecone](https://typesense.org/) 2025
75 "In latency-sensitive domains like high-frequency trading, ad-tech real-time bidding, multiplayer game servers, or autonomous driving systems, a single unpredictable GC pause can have catastrophic downstream effects — a 20ms hiccup might sound negligible, but in systems measured in microseconds, it is unacceptable" [Why Tail Latency Matters and How C++ & Rust Beat Java/C# in Core Systems Medium](https://medium.com/@vn44/why-tail-latency-matters-and-how-c-rust-beat-java-c-in-core-systems-8497fd74b2dc) 2025

Source Summary

Search Query Key Findings
rust search engine production 2025 tantivy sonic Tantivy as Lucene alternative; Sonic ~30MB RAM on $5/mo server; both GC-free by design
tantivy vs lucene comparison performance 2025 Lucene 10.3 closing gap; Tantivy influenced Lucene optimizations (60%, 33% speedups); Block-max WAND
rust database ecosystem growth 2025 48.8% enterprise adoption; 100k crates; 83% admiration; Cargo improvements reducing friction
rust vs java database performance comparison 2025 Rust 160k RPS on 2 cores; 2-4x memory efficiency vs Go; no GC pauses; predictable tail latency
quickwit rust search engine production 2025 Datadog acquisition Jan 2025; 1 PB/day indexing; 10x cost efficiency vs Elasticsearch
meilisearch rust production scaling 2025 Sub-50ms on single node; memory-mapped architecture; vs Elasticsearch's 3-6 node minimums
rust zero GC advantage database workloads 2025 Discord 160x worst-case latency improvement; Grab 70% cost cut; GC tax 1-3% CPU + pause risk
rust WASM database plugin system 2025 WASI preview 2; wasmtime + wasmer both in Rust; pg_extism for Postgres WASM UDFs; GlueSQL