Skip to content

Core Concepts

HTAP — Hybrid Transactional/Analytical Processing

Section titled “HTAP — Hybrid Transactional/Analytical Processing”

ParticleDB is an HTAP database. It runs OLTP transactions (INSERT, UPDATE, DELETE with full ACID guarantees) and OLAP analytics (complex GROUP BY, aggregations over billions of rows) on the same data, in the same engine.

Traditional architectures require separate databases for transactions (PostgreSQL, MySQL) and analytics (ClickHouse, BigQuery) connected by ETL pipelines. ParticleDB eliminates this split:

Traditional StackParticleDB
PostgreSQL (OLTP) + ClickHouse (OLAP) + Pinecone (vectors) + Redis (cache)One database
ETL pipeline with hours of lagReal-time analytics on live data
4 connection strings, 4 schemas1 connection string

ParticleDB picks the concurrency model at server start via --txn-mode:

ModeBehaviorWhen to use
fastNo locks; commit-on-writeBulk loads, single-writer benchmarks
occ-v3Overlay + commit-time OCC write-set validation (default)General OLTP — safe under concurrency
serializable-ssiAdaptive serializable snapshot isolation (PL-3); alias ssiSerializable workloads with optimistic concurrency
strict-serializableSerializable-SSI plus real-time ordering; alias strict-serStrongest guarantee
table-2plExclusive table locks at first touch; alias 2plStrict serialization via locking, simple semantics

If you do not pass --txn-mode, the server picks occ-v3, except when --wal-sync-mode sync is set (then table-2pl).

The names occ, occ-v2, zero-copy-occ, zcocc, serializable-occ, and row-2pl are accepted as deprecated aliases for occ-v3.

ParticleDB speaks the PostgreSQL v3 wire protocol natively. Any tool, driver, or ORM that works with PostgreSQL works with ParticleDB:

  • psql, pgAdmin, DBeaver
  • JDBC, Npgsql, psycopg2, node-postgres, sqlx
  • Diesel, SQLAlchemy, Prisma, GORM

No custom drivers required. Connect to port 5432 and run SQL.