ACID transactions
Snapshot reads, savepoints, per-record conflict detection and concurrent commit on a page store with MVCC, WAL and fuzzy checkpoints.
SQL and transactionsSQL, a durable cache, queues, full-text search, vectors, spatial queries and analytics share one engine. Connect with PostgreSQL and Redis clients, embed it in a Rust application, or run it as a server.
Deployment figures describe real installations, not capacity guarantees for your hardware. Index figures are from the retained Common Crawl corpus; see full-text search.
Every surface below runs against the same storage, transactions, backups and access controls. No sync pipeline between them.
CREATE TABLE notes (
id BIGINT PRIMARY KEY,
body TEXT NOT NULL,
embedding VECTOR(3)
);
INSERT INTO notes VALUES
(1, 'Search works offline', '[1,0,0]'),
(2, 'Ship fewer services', '[0,1,0]');
SELECT * FROM notes ORDER BY id;$ redis-cli -p 6379 SET session:42 '{"user":"ana"}' EX 3600
OK
$ redis-cli -p 6379 GET session:42
"{\"user\":\"ana\"}"
# Keys and their TTLs are BicDB records, written through the WAL.
# Restart cache-serve and they are still there.CREATE INDEX articles_fts ON articles USING GIN (
to_tsvector('english', coalesce(title, '') || ' ' || coalesce(abstract, ''))
);
SELECT id, title,
ts_rank(
to_tsvector('english', coalesce(title, '') || ' ' || coalesce(abstract, '')),
plainto_tsquery('english', 'gene therapy')
) AS rank
FROM articles
WHERE to_tsvector('english', coalesce(title, '') || ' ' || coalesce(abstract, ''))
@@ plainto_tsquery('english', 'gene therapy')
ORDER BY rank DESC
LIMIT 20;-- Exact nearest neighbours by cosine distance (the default)
SELECT * FROM memories
ORDER BY embedding <=> '[0.1,0.2,0.3]'
LIMIT 10;
-- Opt into the HNSW index for this session
SET bicdb.vector_search = 'ann';
SET bicdb.ef_search = 100;
SELECT * FROM memories
ORDER BY embedding <=> '[0.1,0.2,0.3]'
LIMIT 10;
-- Operators: <=> cosine, <#> negative inner product, <-> L2-- Publish a job
SELECT broker_publish('note_jobs', json_build_object('note_id', 1), NULL);
-- Deliver it to a worker in another process
SELECT broker_consume('note_jobs', 'workers', 'worker-1', 1, 30000);
-- The worker acknowledges the message ID with broker_ack
-- after completing the job.use bicdb_core::{BicDb, CompressionConfig, DbConfig, JsonFilter, Record};
use serde_json::json;
let config = DbConfig::default()
.with_fsync(true)
.with_compression(CompressionConfig::zstd(3, 4096));
let mut db = BicDb::open_with_config("./testdb", config)?;
db.create_collection("patients")?;
db.insert(
"patients",
Record::new("patient-1")
.with_vector(vec![0.2, 0.4, 0.8])
.with_metadata(json!({"clinic": "rural-7"}))
.with_timestamp(1710000000),
)?;
let filter = JsonFilter::new().eq("clinic", "rural-7");
let matches = db.search_vector("patients", &[0.2, 0.4, 0.8], 10, Some(&filter))?;
db.flush()?;Fewer moving parts between your idea and your application: one process to deploy, one backup to restore, one set of permissions to audit.
These are capability comparisons, not claims of complete compatibility or equivalent performance. PostgreSQL support has a tested boundary, and the current limitations are documented.
bicdb serve. Checked against a PostgreSQL 18.4 oracle with an automated client matrix.
bicdb cache-serve. Durable keys and TTLs, hashes, sorted sets, streams, Lua.
@bicdb/client runs BicDB in a Web Worker over OPFS, with sync.
Storage, transactions and recovery come first. Everything else is built on top of them.
Snapshot reads, savepoints, per-record conflict detection and concurrent commit on a page store with MVCC, WAL and fuzzy checkpoints.
SQL and transactionsFull and incremental backup chains, verification, restore drills, and bicdb backup pitr to any commit or second.
Commits acknowledged only after the configured standbys hold them durably (RPO = 0). Standbys serve reads; promotion is explicit.
Clustering and HAXChaCha20-Poly1305 storage encryption with Argon2id, field-level envelopes, blind indexes, roles and PostgreSQL-style RLS.
SecurityAS OF, VERSIONS BETWEEN, FOR SYSTEM_TIME, FLASHBACK TABLE and a recycle bin for dropped tables.
SUBSCRIBE SELECT ... streams a result and then every change to it, over any PostgreSQL driver.
CREATE CUBE with dimensions, hierarchies and measures, kept current as data changes. Arrow export and DataFusion SQL.
WKB/EWKB geometries, DE-9IM predicates with geodesic math, R-tree joins, H3 cells, vector tiles, isochrones and geofencing.
SpatialBicDB Mesh: peer-to-peer replication with version vectors, signed frames, LAN discovery and SQL-surfaced conflict review.
Sync and MeshBicDB is production software. It runs a search cluster with 2.1 billion records, health-record backends and field apps.
BicDB powers search for Wewobo (Web Without Borders) alongside a 41-million-article scientific corpus. Backups, snapshots, access controls and recovery cover the rows and their search structures together.
Storage encryption, field-level envelopes and blind indexes, fail-closed tenant isolation and row-level security in the shared SQL path.
Embed the engine on the device or in the browser, keep working offline, and synchronise with durable pending-sync operations and peer-to-peer Mesh.
bicdb doctor --json and bicdb check --json reportsByte-level corruption and crash-boundary tests, kill/restart, PostgreSQL 18.4 differential tests, real-client gauntlets and deterministic cluster failures.
Free and open source under the Apache License 2.0. Install it in one command and point psql at it.