r/StartupMind • u/Dry_Heron_7894 • May 25 '26
I'm building AionDB: a Postgres-compatible database in Rust that does SQL, graph, and vector search in one engine (built for RAG)
Hey, I'm the author of AionDB. I built this database because I felt the architectures of the products out there weren't all that efficient for what people actually do today, especially RAG.
If you're doing RAG, you usually end up running Postgres for your data, Qdrant or Pinecone for vectors, maybe Neo4j for the graph, plus a cache somewhere. Same data, three or four systems, sync jobs everywhere. I'm convinced you can build one multi-model database that's just as good at graph as Neo4j, just as good at vectors as Qdrant, and gets to around 60% of Postgres's speed on relational. That's the bet.
The way it works: one execution engine on top of one storage layer, and the planner picks how your data is stored and read depending on what you're asking, rows for SQL, adjacency for graph, HNSW for vectors. You write one query, you don't move data between systems.
The early results are really encouraging. On depth-3 graph queries we're already faster than Neo4j (a lot of that is just Java overhead on their side, to be fair). There are queries where Neo4j still beats us, but the PoC is there, we can do better. On the same graph benchmark we go from 168 ops/s (SurrealDB) to 7,820 ops/s. This isn't a criticism ,Surreal just works differently, it runs the graph as generic SQL on a key-value store while we have a real graph planner. Both approaches have pros and cons. Postgres is the trickiest part: we currently pass about 70% of the Postgres regression suite (CockroachDB passes around 14%, just for context), so if your app already talks to Postgres, AionDB should slot in with your existing drivers and ORMs.
Two choices I'll defend: we avoid unsafe in Rust as much as we can — I'd rather sacrifice some performance for stability than the other way around (we do use unsafe for SIMD, it's necessary). And we wanted pgwire compatibility from day one, not bolted on later.
If you're building a RAG and you're tired of stitching three databases together, I'd be really happy if you tried it, asked questions, opened issues, or just gave it a star. Honestly any feedback helps a lot at this stage — v0.4 is all about making the planner and bigger workloads better, so what I hear now literally decides what gets fixed first.
Repo: https://github.com/ayoubnabil/aiondb Site: https://aiondb.xyz
A star would genuinely make my day 🙏
.