Home Features Documentation Benchmarks License & FAQ
Architectural Innovations

15 Signature Innovations

Engineered specifically for high-throughput single-node databases, local embedded apps, and cloud microservices.

Storage & Ingestion

1. High-Throughput Public Batch API

Native insertBatch() and multi-row SQL statements delivering up to ~500,000 rows/sec with automatic slotted-page serialization and catalog updates.

await engine.insertBatch('users', [ [1, 'Alice', 98.5], [2, 'Bob', 91.2], ], columns: ['id', 'name', 'score']);
Indexing

2. Bulk B+ Tree Index Construction

Specialized insertSortedBatchSync builds a complete 100K-row B+ Tree index in ~60–130 ms with zero runtime memory fragmentation.

CREATE INDEX idx_users_score ON users (score); -- Evaluated and maintained via balanced B+ Tree nodes
AI & Vector

3. Native 768-Dim HNSW Vector Graph

Sub-7ms approximate nearest-neighbor vector search over 768-dim embeddings with >99% Recall@10, eliminating external vector databases.

CREATE INDEX idx_emb ON docs (embedding) USING HNSW; SELECT * FROM docs ORDER BY vector_distance(embedding, '[0.1, ...]') LIMIT 5;
Network Protocol

4. PostgreSQL v3 Wire Protocol Server

Embeds a TCP server compatible with standard Postgres drivers (psql, psycopg2, node-postgres, JDBC) on port 5432.

final server = PgWireServer(db: db, port: 5432); await server.start();
Resilience

5. WAL CRC32 Crash Recovery

ACID write-ahead log protects against power loss. Checksums verify each page, auto-rolling back incomplete writes and replaying committed transactions.

// Automatically executes upon Database.init() await db.init(); // Recovers from wal.log seamlessly
Optimization

6. Autonomous Telemetry Auto-Indexer

Monitors query scan frequencies and automatically provisions B+ Tree indexes for repetitive full-table scans.

SET engine_option auto_create_indexes = true;
Data Ingestion

7. Universal Direct File SQL Adapter

Execute live SQL queries directly over standard .csv, .json, and .log files without importing data into tables.

SELECT * FROM file('/data/access.log') WHERE status = '500';
AI Generation

8. Natural Language to SQL Compiler

Built-in rule-based NL-to-SQL compiler translates natural queries directly into optimized SQL execution plans.

final sql = nlCompiler.compile("Show all active users ordered by score");
Query Execution

9. Deterministic Obfuscation Matching

Fast constant-time token equality matching over repeating-key XOR strings. (For secure data-at-rest, AES-256-CTR is built-in).

SELECT * FROM accounts WHERE zk_match(token, 'key_123') = true;
Offline Sync

10. In-Memory LWW CRDT State Merging

Last-Write-Wins element state merging for local multi-device synchronization workflows.

final updated = nodeA.mergePeerState(remoteState);
Memory Efficiency

11. Zero-Allocation RowMap Wrapper

Replaces heavy heap Map instantiations with zero-allocation array views into slotted record memory.

// Iterates row views directly without creating Map objects
JIT Compilation

12. JIT Compiled WHERE Expressions

Compiles complex SQL filter conditions directly into native Dart closure delegates for accelerated evaluation.

SELECT * FROM transactions WHERE amount > 1000 AND status = 'COMPLETE';
Analytics

13. Auto-Optimized Columnar Store

Automatically stores analytical or VECTOR tables in a columnar layout with run-length and dictionary encoding.

CREATE TABLE analytics (...) WITH (storage = 'columnar');
Concurrency

14. MVCC Multi-Version Concurrency

Lock-free read queries that never block writers, repeatable read isolation, and OS-level multi-process file locking.

BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ;
Security

15. Transparent AES-256-CTR Page Encryption

Full database-at-rest cryptographic encryption implemented in pure Dart. Storage pages are encrypted and decrypted on the fly using standard 256-bit AES with zero native dependencies.

final db = Database('/path/to/db', encryptionKey: 'passphrase_or_raw_key');