JouleDB (v0.12.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 [1.99×], SF=1.0 [201 MB RSS], & SF=10.0 [86.6M rows in 755 MB post-load RSS, 8.49× geomean]), 64-shard JMVR/JWU1 pgwire SQL OLTP, 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.12.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.11.0engine upgrades,v0.12.0collapsesTPC-HSF = 10.0(86.6Mrows) post-load RSS46.1×(34.81 GB -> 755.3 MB) and cutsSF = 10.022-query total time2.20×(34.06 s -> 15.46 s,8.49×geomean), reaches1.99×geomean (5 / 22faster than DuckDB2.0.1) atSF = 0.1and4.33×geomean (201.4 MBpost-load RSS) atSF = 1.0, upgrades physical-NVMe100-warehousepgwireOLTP with binaryJWU1deltaUPDATEs (5,159.7 TPSPipelined /5,154.1 TPSSimple atc=16,1.87×–2.02×vsPostgreSQL 16.16, beatingPostgreSQL 16.161.63×atc=1Simple), and fixesnode-pguntyped parameter coercion &libpqGSSENCRequestnegotiation:
46.1×Lower Out-of-Core.jcolPost-Load RSS (JCOL_ID_TAG) +2.20×FasterSF = 10.0TPC-H(columnar_join.rs): DisjointJCOL_ID_TAG(1 << 62) segment IDs eliminate dense VSA hologram slot zero-filling after multi-million-row.jcolloads (SF=1.0post-load RSS5,769 MB -> 201.4 MB[28.6×];SF=10.0post-load RSS34,810 MB -> 755.3 MB[46.1×, peakVmHWM40.03 GB -> 15.59 GB]). ZoneMapDenseKeyBitspruning, two-stage sparse dictionary materialization, 64-shard radixGROUP BY(Q18:11.33 s -> 1.80 s[6.29×]), and<= 20M-row semi-join key propagation (Q10:9.11 s -> 5.23 s,Q17:1,529 ms -> 88.6 ms[17.2×],Q20:657 ms -> 99.7 ms[6.59×]) cutSF=10.0geomean from16.03× -> 8.49×andSF=1.0from6.18× -> 4.33×.- Binary
JWU1DeltaUPDATECodec + Physical-NVMe100-WarehousepgwireOLTP (oltp_pgwire_100wh.json): BinaryJWU1WAL encoding, deferred-hologramupdate_fields_deferred_holo, unchanged-column skip, and 64-shardtable_id_shardson real NVMefdatasync(--work-dir /var/tmp) beatPostgreSQL 16.161.63×atc=1Simple (1,950.5vs1,199.7 TPS) and scale to5,154.1 TPSSimple /5,159.7 TPSExtended Pipeline atc=16(1.87×–2.02×vsPostgreSQL 16.16, narrowed from2.61×–2.91×inv0.11.0,invariant_verified = trueacross all 5 runs).pgwireClient Protocol Fixes +41 / 41(100%)deny(clippy::unwrap_used)Workspace: Coerced untyped text numeric parameters fornode-postgres(tests/clients/node_pg.js5/5 green), added PostgreSQL v12+GSSENCRequest'N'negotiation forlibpq/psycopg, and forwardedEnergyAwareExecutorstaticDescribe& owned Arrow hints. SeeCHANGELOG.md.
What Is Real & Verified Today (41 Workspace Crates · 747.6k LOC · 12,272 Tests · 41 / 41 deny(unwrap_used))
- Core Storage, 64-Shard Binary
JMVR/JWB1/JWU1MVCCSSI& Recovery (joule-db-core,joule-db-local,joule-db-amorphic):- Copy-on-Write B-tree pages, lock-free positional
pread/pwrite, Cahill Serializable Snapshot Isolation (SSIrw-antidependency detection), 64-shardMvccStore(find_visible_atzero-HashSet-clone snapshot reads) + 64-shardMvccTableStorage(table_id_shards) with binaryJMVR\x01,JWB1batch_ingest_fields, andJWU1UpdateFieldsdelta WAL serialization, deferred-hologramINSERT/UPDATE, adaptiveSmallVec/BTreeSetsecondary indexes, group-committed NVMe 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, Vectorized Multi-TableTPC-HJoins &pgwire(joule-db-query,joule-db-server):- PostgreSQL v3 wire listener (
psql,psycopg3Simple & cached-DescribeExtended Pipeline,node-pg,JDBC,SQLAlchemy,GSSENCRequestnegotiation), owned-batch streaming ParquetCOPYspilling262,144-row.jcoldisk segments inJCOL_ID_TAGnamespace (755 MBpost-load RSS at86.6Mrows), vectorizedexecute_segmented(43 / 43Official ClickBench at100Mrows) +columnar_join(22 / 22OfficialTPC-HatSF=0.1,SF=1.0, andSF=10.0), 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: Vectorized.jcolexecution (5.90 GBpost-load RSS;10MpeakVmHWM3.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 ms,Q120.23 ms,Q22.41 ms[25.5×],Q32.32 ms[22.4×],Q61.58 ms[14.0×],Q292.40 ms[23.4×],Q4222.78 ms). DuckDB2.0.1wins36 / 43queries (2.11×geomean,7.06×faster Parquet load).
2. Official 22-Query TPC-H Relational Suite (tpch_queries(), 8 Tables, SF = 0.1, 1.0 & 10.0) vs. DuckDB 2.0.1
Executed via bench/tpch_official.py over real TCP pgwire (psycopg 3.3.9, physical NVMe --work-dir /var/tmp, 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) |
Post-Load RSS (VmHWM Peak) |
Exact Verified (Faster) |
Total 22-Query Time (DuckDB vs JouleDB) |
Geomean Latency (JouleDB / DuckDB) |
|---|---|---|---|---|---|
SF = 0.1 (866,602 rows) (JSON) |
0.430 s (12.2 J) vs 1.380 s (54.5 J) |
780.8 MB (939.3 MB) |
22 / 22 (5 faster: Q02,Q11,Q16,Q20,Q22) |
88.2 ms vs 253.0 ms (196.0× vs v0.10.0) |
1.99× slower (median 2.16×, down from 125.5×) |
SF = 1.0 (8,661,245 rows) (JSON) |
1.142 s (64.6 J) vs 5.504 s (288.5 J) |
201.4 MB (1,561.8 MB) |
22 / 22 (0 err, 0 timeouts) |
253.0 ms vs 1,779.0 ms (1.57× vs v0.11.0) |
4.33× slower (median 3.60×, down from 6.18×) |
SF = 10.0 (86,586,082 rows, 60M lineitem) (JSON) |
5.434 s (506.5 J) vs 38.059 s (1,242.5 J) |
755.3 MB (15,586.4 MB) |
22 / 22 (20/22 < 1.2 s, 0 err) |
1,001.4 ms vs 15,464.6 ms (2.20× vs v0.11.0) |
8.49× slower (median 8.38×, down from 16.03×) |
- Candid
TPC-HSummary: Separating.jcolsegment IDs (JCOL_ID_TAG) fromAmorphicStore.next_idcollapsesSF = 10.0post-load RSS46.1×(34.81 GB -> 755.3 MB,15.59 GBpeakVmHWM) andSF = 1.0post-load RSS28.6×(5.77 GB -> 201.4 MB), while ZoneMapDenseKeyBitspruning, two-stage sparse dictionary loading, 64-shard radixGROUP BY(Q18:11.33 s -> 1.80 s), and20M-row semi-join propagation (Q17:1,529 ms -> 88.6 ms,Q20:657 ms -> 99.7 ms,Q10:9.11 s -> 5.23 s) cutSF = 10.0geomean from16.03× -> 8.49×andSF = 0.1to1.99×(5 / 22wins). DuckDB2.0.1remains4.33×faster atSF=1.0and8.49×faster atSF=10.0(widestSF=10.0tails:Q105.23 s[64.8×],Q181.80 s[18.2×],Q091.68 s[16.2×]).
3. Head-to-Head 100-Warehouse Physical-NVMe TCP pgwire OLTP vs. PostgreSQL 16.16 & SQLite 3.53.1
Executed via bench/oltp_pgwire.py (oltp_pgwire_100wh.json, physical NVMe --work-dir /var/tmp rather than RAM tmpfs, rapl-package reported_j, quiet host idle_watts = 10.68 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, 0 errors 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.12.0 (pgwire Simple Query, 4-RTT + NVMe fdatasync) |
1,950.5 (0.148 ms) |
1,005.0 (0.666 ms) |
2,617.9 (0.640 ms) |
5,154.1 (0.718 ms, 10.34 mJ) |
25,677 (0 conflicts) |
JouleDB 0.12.0 (pgwire Extended Pipeline, 1-RTT + NVMe fdatasync) |
620.9 (0.169 ms) |
1,149.0 (0.616 ms) |
2,730.9 (0.633 ms) |
5,159.7 (0.773 ms, 11.71 mJ) |
23,158 (0 conflicts) |
PostgreSQL 16.16 (pgwire Simple Query, 4-RTT + NVMe fsync) |
1,199.7 (0.100 ms) |
2,813.0 (0.142 ms) |
5,571.7 (0.111 ms) |
10,419.4 (0.273 ms, 4.14 mJ) |
47,846 (0 conflicts) |
PostgreSQL 16.16 (pgwire Extended Pipeline, 1-RTT + NVMe fsync) |
1,171.7 (0.071 ms) |
2,555.3 (0.100 ms) |
5,047.0 (0.167 ms) |
9,635.6 (0.231 ms, 3.67 mJ) |
44,020 (0 conflicts) |
SQLite 3.53.1 (Embedded in-proc C API, NVMe WAL, NORMAL) |
42,194.7 (0.005 ms) |
86,523.3 (0.006 ms) |
97,425.3 (0.007 ms) |
109,483.5 (0.007 ms, 0.36 mJ) |
830,955 (no TCP / fsync) |
- Candid Physical-NVMe OLTP Summary: (Methodology note:
v0.11.0ran on default/tmp[tmpfsRAM disk], whereasv0.12.0runs on--work-dir /var/tmpso everyCOMMITforces a real NVMefdatasync.) BinaryJWU1deltaUPDATEs, deferred-hologram updates, andGroupSyncbeatPostgreSQL 16.161.63×atc=1Simple (1,950.5vs1,199.7 TPS,3.42×less energy/txn) and scale to5,154.1 TPSSimple /5,159.7 TPSPipelined atc=16, narrowing thec=16gap vsPostgreSQL 16.16from2.91× / 2.61×(v0.11.0) to2.02×Simple /1.87×Pipelined (PostgreSQL 16.16still wins1.87×–2.80×atc=4..16via shared-buffer page locks, and JouleDB's adaptiveGroupSyncbatch window adds~1.5 mswait atc=1Pipelined /c=4transition).
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.12.0)
# 1. Install prebuilt v0.12.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.12.0), not a battle-tested production RDBMS: While JouleDB0.12.0executes43 / 43Official ClickBench on99,997,497rows (2.11×geomean vs DuckDB2.0.1),22 / 22OfficialTPC-Hup toSF=10.0(86.6Mrows in755 MBpost-load RSS,8.49×geomean),5,160 TPSphysical-NVMepgwireOLTP (invariant_verified = true), and 5-node cross-machine WAN Raft (elle{:valid? true}), mature specialized engines (DuckDB 2.0.12.11×faster on100MClickBench &4.33×–8.49×faster onSF=1..10TPC-H;PostgreSQL 16.161.87×–2.80×faster onc=4..16NVMepgwireOLTP;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 across41 / 41workspace crates (100%,0#[allow(clippy::unwrap_used)]bypasses) via a blocking CI gate. - SDK registry status: Prebuilt
cp39-abi3Python.whlwheels, TypeScriptopenie-jouledb-0.12.0.tgz, and Claude.mcpbbundles are published on GitHub Releases (v0.12.0) (with automated OIDC/token publish steps wired in.github/workflows/release.yml); packages are not yet published on PyPI, npm, NuGet, or Maven Central pending registry token/OIDC registration.
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.12.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.