Skip to content

Core concepts ​

PiramideDB is a PostgreSQL index access method. You define it with CREATE INDEX, query it with SQL, and operate it with the same backups, failover, and read replicas you already use for PostgreSQL.

Transactional durability & read replicas ​

Every write to a PiramideDB index is logged through PostgreSQL's write-ahead log (WAL). That gives you three guarantees without extra infrastructure:

  • Crash safety: Committed rows stay indexed across crashes and restarts.
  • Read replicas: Physical streaming standbys replay index updates automatically, so read replicas can serve search traffic immediately.
  • No sync pipeline: Because the index lives inside PostgreSQL, there is no change-data-capture lag or out-of-band backfill to maintain.

Multi-tenancy by default ​

Every PiramideDB index is partitioned logically by a tenant key. Queries always scope to a single tenant, keeping postings, statistics, and vector search isolated per customer.

Most search engines compute relevance scores across the entire index and filter unauthorized rows afterward. When you set scoring = 'visible', PiramideDB computes relevance statistics strictly over the rows the current caller is allowed to see—so restricted documents never affect scores, facet counts, or zero-hit diagnostics.

Compacting writes ​

Incoming writes append to a fast write buffer so INSERT, UPDATE, and DELETE stay low-latency. As data grows, PiramideDB flushes and compacts segments online without blocking readers. See Operations for manual spill(), merge(), and verify() controls.

Self-contained core, optional agentic tools ​

PiramideDB itself runs entirely inside PostgreSQL with no outbound network calls or external model dependencies. If you want automated embedding generation, schema routing, or natural-language query parsing, you can opt into the Agentic toolkit alongside your database.

PiramideDB is built by Nomad River.