JouleDB (v0.10.0 — Pre-1.0 Research Preview)
An experimental energy-metered multi-model database in Rust (Apache-2.0 OR MIT) exploring Copy-on-Write SSI storage, out-of-core .jcol vectorized columnar analytics (43 / 43 Official ClickBench at 100M rows + 22 / 22 Official TPC-H at SF=0.1), PostgreSQL pgwire SQL, multi-host WAN TCP Raft ReadIndex consensus, Claude/MCP Apps Studio UI (SEP-1865), 10,240-bit Amorphic VSA storage, and .jsyn sub-1-bit sentence embeddings.
Pre-1.0 Status &
v0.10.0Release Summary (2026-11-26): Building on ourv0.6.0external-audit remediation (v1.0.0GA tag retracted/yanked, unrelated1.11M-LOCjoule-webcrate and syntheticfrontier_exam_routes.rsdeleted, 81 unverified low-BPW causal LLM exports pruned from Hugging Face) andv0.7.0–v0.9.0engine upgrades,v0.10.0expandsdeny(clippy::unwrap_used)across29 / 41workspace crates (70.7%, including all ofjoule-db-server&jouledb-cli), narrows full-100MClickBench to2.11×geomean vs DuckDB2.0.1(2.03×reported_j), adds the Official 22-QueryTPC-HSuite (22 / 22exact atSF=0.1,13 / 22atSF=1.0), and bringspgwireExtended Pipeline to parity with Simple Query (JMVR\x01binary MVCC codec + AST cache):
29 / 41Workspace Crates (70.7%) Enforcingdeny(clippy::unwrap_used)— Includingjoule-db-server&jouledb-cli: Expanded non-test.unwrap()compiler denial from7crates inv0.9.0to29 / 41crates (joule-db-serverlib+bin,jouledb-cli,joule-db-core,joule-db-query,joule-db-local,joule-db-amorphic,joule-db-hdc,joule-db-viz,joule-db-branch,joule-db-ledger,joule-db-energy,joule-db-weights, and 17 domain/transport crates) with a blocking CI gate.- Full
99,997,497-Row (14.78 GB) Official ClickBench Narrowed to2.11×Geomean vs DuckDB2.0.1(2.03×reported_j,5.90 GBLoad RSS): BitpackedWordMaskselection vectors, filteredMIN/MAXfast paths (Q7:10.71× -> 1.04×),90-sum SIMD slice batching (Q30:14.26× -> 2.85×), dictionaryLIKEbitsets (Q20:6.75× -> 3.54×), and streaming10M.jcolsegment memory reduction (10MVmHWMcut2.63×from9,060 MB -> 3,448 MB).- Official 22-Query
TPC-HMulti-Table Relational Suite (bench/tpch_official.py): Hash semi/anti-joins (EXISTS/NOT EXISTS), correlated scalarGROUP BYdecorrelation,OR-conjunct factoring (Q19), andcol_cachescan pushdown verify22 / 22(100%) officialtpch_queries()exact atSF = 0.1(866,602rows) and13 / 22exact atSF = 1.0(8,661,245rows,9.82 sParquet load), with825 stimeouts and136 GBRSS cap trip candidly documented.pgwireExtended Pipeline Parity + BinaryJMVR\x01MVCC Codec (oltp_pgwire_100wh.json): CachedDescriberows, directportal.paramsbinding, thread-local SQL AST cache, and binaryJMVR\x01MvccRecordserialization eliminate the1.97×Extended Pipeline penalty (1,375.7 TPSPipelined vs1,351.6 TPSSimple atc=16,1,440.0 TPSSimple atc=4under shared CI load;3,351.0 TPSuncontended,invariant_verified = trueacross all 5 runs).- Claude/MCP Apps (
SEP-1865), 5-Node Multi-Host WAN Raft (elle{:valid? true}), & Release SDK Bundles: Built-in JouleDB Studio (ui://jouledb/studio.html,50tools),.mcpb(manifest_version: "0.3") bundles,cp39-abi3.whlwheels, andopenie-jouledb-0.10.0.tgzon GitHub Releasev0.10.0. SeeCHANGELOG.md.
What Is Real & Verified Today (41 Workspace Crates · 737.3k LOC · 12,269 Tests)
- Core Storage, Binary
JMVRMVCCSSI& Recovery (joule-db-core,joule-db-local):- Copy-on-Write B-tree pages, lock-free positional
pread/pwrite, Cahill Serializable Snapshot Isolation (SSIrw-antidependency detection), index-assistedMvccTableStoragewith binaryJMVR\x01WAL/MVCC serialization,O(1)PK/UNIQUE index checks and group-committed WAL durability,CRC-32torn-WAL truncation,ALP + FSSTcolumnar codecs, andRaBitQ1-bitPOPCNTvector quantization.
- Copy-on-Write B-tree pages, lock-free positional
- Out-of-Core
.jcolColumnar Analytics, Multi-TableTPC-HJoins &pgwire(joule-db-query,joule-db-server):- PostgreSQL v3 wire listener (
psql,psycopg3Simple & cached-DescribeExtended Pipeline with thread-local AST cache), row-budgeted streaming ParquetCOPYspilling262,144-row.jcoldisk segments, vectorizedexecute_segmented(WordMaskbitsets,global_int_sum, ZoneMap pruning, 256-partitionCompactI2Row/ hash-reduce), decorrelatedEXISTS/NOT EXISTS/INhash joins (22 / 22TPC-HatSF=0.1), andDBSPZSet<T>incremental views.
- PostgreSQL v3 wire listener (
- Claude Apps / MCP Apps Host (
mcp_app_ui.rs,mcp_transport.rs):- Native
SEP-1865MCP Apps server overjouledb mcp --data <dir>(stdioJSON-RPC2025-06-18) andPOST /mcp(Streamable HTTP), exposing50tools (db.studio,db.query,db.schema,db.amorphic.*,db.synapse.*,db.branch.*,db.ledger.*) and a zero-CDN interactive JouleDB Studio (ui://jouledb/studio.html,text/html;profile=mcp-app) for Claude Desktop, Claude Web, VS Code, Goose, and Antigravity.
- Native
- 5-Node Multi-Host WAN & Local TCP Raft Consensus (
raft.rs,raft_transport.rs,examples/raft_wan_node.rs):- Quorum write commit via
RaftNode::propose_and_commit(§5.4.2), quorum linearizable reads viaRaftNode::read_linearizable(§6.4ReadIndexheartbeat quorum, zero WAL growth),CRC-32raft.walcrash recovery, and both multi-host Tailscale WAN (27.58 msRTT +SIGKILL) and local 20-link fault-injection suites verified{:valid? true}by official Clojureelle/elle 0.2.8.
- Quorum write commit via
- Energy Telemetry &
.jsynSub-1-Bit Sentence Embeddings (joule-db-energy,joule-db-weights):- Bare-metal hardware counter readers (
reported_jvia Linuxintel-rapland macOSIOKit SMC) segregated from analytical cost models (est_j), plus pure-Rustdcharlot65-openie/all-MiniLM-L6-v2-LittleBit(1.95 MB,0.4378 BPW,0.9441cosine vsFP32).
- Bare-metal hardware counter readers (
Reproducible External Evaluations (bench/)
1. Full Official ClickBench (hits.parquet, 99,997,497 Rows, 105 Columns, 43 Queries) vs. DuckDB 2.0.1
Executed via bench/clickbench_official.py over real pgwire (psycopg 3.3.9) on framework-128gb-0000 (AMD Ryzen AI Max+ 395, 128 GB RAM, Linux rapl-package reported_j):
Official hits.parquet Scale |
Parquet Load (DuckDB vs JouleDB) |
JouleDB Load RSS (VmHWM Peak) |
Queries Succeeded | SQL-Valid Match (Exact) |
Faster (JouleDB / DuckDB) |
Geomean Latency (JouleDB / DuckDB) |
Geomean Energy (reported_j) |
|---|---|---|---|---|---|---|---|
100,000 rows (JSON) |
0.179 s vs 0.265 s |
918 MB (2,652 MB) |
43 / 43 (0 err) |
43 / 43 (34 exact) |
20 / 23 |
1.47× slower (median 1.19×) |
1.97× more J |
1,000,000 rows (JSON) |
0.158 s vs 0.871 s |
1,283 MB (1,923 MB) |
43 / 43 (0 err) |
43 / 43 (29 exact) |
11 / 32 |
2.34× slower (median 2.95×) |
2.50× more J |
10,000,000 rows (JSON) |
2.422 s vs 13.340 s |
2,385 MB (3,448 MB) |
43 / 43 (0 err) |
43 / 43 (31 exact) |
9 / 34 |
2.28× slower (median 2.63×) |
2.22× more J |
99,997,497 rows — FULL 14.78 GB (JSON) |
13.866 s vs 97.835 s |
5,902 MB (16,470 MB) |
43 / 43 (0 err) |
43 / 43 (32 exact) |
7 / 36 |
2.11× slower (median 3.39×) |
2.03× more J |
- Candid Full-
100MSummary: Inv0.10.0, vectorized.jcolexecution v2 (5.90 GBpost-load RSS;10MpeakVmHWMcut2.63×to3.45 GB) narrows the full100M-row geomean latency gap vs DuckDB2.0.1from4.85×(v0.8.0) ->2.82×(v0.9.0) ->2.11×(2.03×reported_j), beating DuckDB2.0.1on7 / 43queries at100Mrows (Q01.91 msvs5.67 ms,Q120.23 msvs41.65 ms,Q22.41 msvs61.55 ms[25.5×],Q32.32 msvs51.82 ms[22.4×],Q61.58 msvs22.07 ms[14.0×],Q292.40 msvs56.20 ms[23.4×],Q4222.78 msvs34.83 ms) and sharply narrowing former tail bottlenecks (Q710.71× -> 1.04×,Q3014.26× -> 2.85×,Q206.75× -> 3.54×,Q1511.40× -> 4.82×, widest gapQ3922.36× -> 14.84×). DuckDB2.0.1wins36 / 43queries (2.11×geomean,7.06×faster Parquet load).
2. Official 22-Query TPC-H Relational Suite (tpch_queries(), 8 Tables) vs. DuckDB 2.0.1
Executed via bench/tpch_official.py over real TCP pgwire (psycopg 3.3.9, Linux rapl-package reported_j) across all 22 official TPC-H SQL queries (Q01..Q22):
Official TPC-H Scale |
8-Table Parquet Load (DuckDB vs JouleDB) |
Exact Verified Matches | Representative JouleDB 0.10.0 Query Latencies |
Candid Multi-Join Status vs. DuckDB 2.0.1 |
|---|---|---|---|---|
SF = 0.1 (866,602 rows) (JSON) |
0.423 s (49.2 J) vs 4.138 s (533.4 J) |
22 / 22 (100%, 0 err) |
Q06: 5.00 ms, Q15: 5.65 ms, Q01: 62.57 ms, Q10: 144.6 ms, Q14: 219.6 ms, Q13: 245.7 ms, Q22: 258.2 ms |
All 22 queries exact (3 / 22 faster at SF=0.01); DuckDB 125.5× faster geomean at SF=0.1 |
SF = 1.0 (8,661,245 rows) (JSON) |
2.076 s (277.1 J) vs 9.816 s (1,202.3 J) |
13 / 22 exact (9 capped) |
Q15: 70.83 ms, Q01: 84.18 ms, Q06: 336.8 ms, Q14: 2,406 ms, Q20: 2,797 ms, Q03: 2,872 ms, Q19: 3,394 ms |
112.8× geomean on 13 completed; 8 hit 25 s wall cap (Q04,Q07-09,Q12,Q17-18,Q21) & 1 hit 36 GB RSS guard (Q05) on Vec<Value> joins |
3. Head-to-Head 100-Warehouse TCP pgwire OLTP vs. PostgreSQL 16.16 & SQLite 3.53.1
Executed via bench/oltp_pgwire.py (oltp_pgwire_100wh.json, rapl-package reported_j, measured back-to-back under shared host CI load idle_watts = 145.1 W): 100,000 accounts (100 warehouses), 50% indexed point read, 30% durable BEGIN; UPDATE accounts ...; INSERT INTO history ...; COMMIT (fsync=on, synchronous_commit=on), 20% warehouse COUNT/SUM across 1, 4, 8, 16 concurrent TCP clients:
Engine & Wire Protocol (invariant_verified = true on all 5) |
c = 1 TPS (p50) |
c = 4 TPS (p50) |
c = 8 TPS (p50) |
c = 16 TPS (p50, mJ/txn) |
Committed Writes |
|---|---|---|---|---|---|
JouleDB 0.10.0 (pgwire Simple Query, 4-RTT + fsync) |
721.6 (1.21 ms) |
1,440.0 (1.68 ms) |
1,358.4 (2.12 ms) |
1,351.6 (2.75 ms, 101.6 mJ) |
11,537 (0 errors) |
JouleDB 0.10.0 (pgwire Extended Pipeline, 1-RTT + fsync) |
381.9 (2.26 ms) |
1,105.9 (2.42 ms) |
1,370.5 (2.66 ms) |
1,375.7 (2.91 ms, 99.5 mJ) |
10,044 (1 SI conflict) |
PostgreSQL 16.16 (pgwire Simple Query, 4-RTT + fsync) |
836.7 (1.07 ms) |
2,132.2 (1.38 ms) |
4,073.9 (1.07 ms) |
5,744.9 (1.05 ms, 22.8 mJ) |
30,605 (0 conflicts) |
PostgreSQL 16.16 (pgwire Extended Pipeline, 1-RTT + fsync) |
896.6 (0.61 ms) |
2,030.0 (1.12 ms) |
3,404.6 (1.44 ms) |
4,720.5 (1.91 ms, 27.4 mJ) |
26,462 (0 conflicts) |
SQLite 3.53.1 (Embedded in-proc C API, WAL, NORMAL) |
19,826.0 (0.008 ms) |
33,279.6 (0.011 ms) |
34,769.4 (0.015 ms) |
36,085.1 (0.018 ms, 3.49 mJ) |
303,731 (no TCP / fsync) |
- Candid OLTP Summary: Cached
Describerows, directportal.paramsbinding, thread-local SQL AST caching, and binaryJMVR\x01MvccRecordserialization eliminated the1.97×Extended Pipeline penalty fromv0.9.0(1,375.7 TPSPipelined vs1,351.6 TPSSimple atc=16, and within1.16×ofPostgreSQL 16.16atc=1; on an uncontended host inv0.9.0, Simple reached3,351.0 TPS).PostgreSQL 16.16remains4.18×faster atc=16(5,744.9 TPS) via shared-buffer page locking vs JouleDB's table-widecommit_lock.
4. 5-Node Multi-Host Cross-Machine WAN/Tailscale TCP Raft (ReadIndex) + Official Clojure elle 0.2.8
Executed via bench/raft_multihost_wan.py, examples/raft_wan_node.rs, and bench/elle_check.clj:
- Cross-Machine WAN Topology & Nemeses: 5 real OS
raft_wan_nodeprocesses with durableraft.walacross 2 distinct physical Linux hosts (framework-128gb-0000bare-metal +openie-core-1Cloud Debian 12 VM,27.58 msmedian Tailscale WAN TCP RTT), cross-WAN2/5minority split isolatingn1,3/5majority election (n3), real OSSIGKILL(kill -9) onn5, andraft.walconvergence (commit=68, applied=68, x=68, y=39) ->{:valid? true}(270WAN events,:strict-serializable).
5. .jsyn (JSYN-v1) Fidelity vs. Compression Curve
| Model / Layer | BPW |
Shrink vs FP16 |
Measured Fidelity vs Upstream | Guidance |
|---|---|---|---|---|
all-MiniLM-L6-v2-LittleBit (6L Encoder) |
0.438 |
22.2× (1.95 MB) |
0.9441 embedding cosine vs FP32 |
Recommended for semantic search & TriModal RRF |
Gemma-4-E2B q_proj (r = 8..128) |
0.028–0.166 |
564×–96.6× |
0.271–0.455 output cos (KL 3.87–2.72) |
Experimental only — not a drop-in causal LLM (retracted from HF) |
Inkling-2-Mini w13 (128-Exp MoE, r = 8..128) |
0.023–0.134 |
701×–120× |
0.113–0.350 output cos (KL 2.91–2.59) |
Experimental only — not a drop-in causal LLM (retracted from HF) |
Quickstart (v0.10.0)
# 1. Install prebuilt v0.10.0 binary (macOS ARM64/x86_64; Linux x86_64 GLIBC <= 2.35, Ubuntu 22.04/24.04 & Debian 12 ready)
# 2. Launch JouleDB server (HTTP :8080, TCP :8081, PgWire :8082, JWP :8083, FlightSQL :8084, MCP HTTP /mcp)
# 3. Or run as a Claude Desktop / MCP Apps stdio server (50 tools + interactive ui://jouledb/studio.html)
# 4. Connect with psql, install GitHub Release Python/TS SDK artifacts, or run smoke/security self-tests
&&
Honest Engineering Boundaries (Read Before Adopting)
- Pre-1.0 research preview (
v0.10.0), not a battle-tested production RDBMS: While JouleDB0.10.0executes43 / 43Official ClickBench on99,997,497rows (2.11×geomean vs DuckDB2.0.1),22 / 22OfficialTPC-HatSF=0.1(13 / 22atSF=1.0),pgwireOLTP withinvariant_verified = true, and 5-node cross-machine WAN Raft (elle{:valid? true}), mature specialized engines (DuckDB 2.0on multi-joinTPC-H&2.11×faster100MClickBench;PostgreSQL 16atc=16OLTP;SQLiteembedded WAL) remain faster for conventional single-model production workloads. - No external compliance certifications:
jouledb trustexercises technical security primitives in code (external_audit_performed = false). No third-party SOC 2, ISO 27001, HIPAA, PCI-DSS, NIST CMVP, or FedRAMP audit has been conducted. - Exact compiler safety lint scope:
#![deny(unsafe_code)]is set injoule-db-corewith 1#![allow(unsafe_code)]module (crates/joule-db-core/src/storage/mmap_extent.rs).#![cfg_attr(not(test), deny(clippy::unwrap_used))]is enforced in29 / 41workspace crates (70.7%), including all ofjoule-db-server(lib+bin) andjouledb-cli; the remaining12 / 41crates inherit workspacewarn. - SDK registry status: Prebuilt
cp39-abi3Python.whlwheels, TypeScriptopenie-jouledb-0.10.0.tgz, and Claude.mcpbbundles are published on GitHub Releases (v0.10.0); packages are not yet published to PyPI, npm, NuGet, or Maven Central.
Documentation & Links
- Website: https://jouledb.org (Claude & MCP Apps · Benchmarks · Honest Boundaries · Security Controls & Bridges ·
.jsynFidelity) - Online Book (
mdBook): https://openie-dev.github.io/jouledb (Claude & MCP Apps Guide) - Verified
.jsynSentence Embedder & Benchmark Dataset: https://huggingface.co/dcharlot65-openie - Architecture Whitepaper (
v0.10.0):docs/WHITEPAPER-JOULEDB-2026-11.md .jsynBinary Specification:docs/JSYN-LIVING-WEIGHTS-SPEC.md- Benchmark Scripts & Raw JSON/EDN Outputs:
bench/
License
Copyright (c) 2026 Open Interface Engineering, Inc. Dual-licensed under either Apache License, Version 2.0 or MIT License, at your option.