Developer beta in preparation. Not released yet.

Structured data has patterns. Your database should notice.

HolaDB is a database engine written from scratch in Rust. You create tables, write SQL and run transactions. Underneath is an experimental storage engine that can keep recurring patterns in sealed data in a compact form, with what is needed to rebuild the original records exactly. In this beta, tables are stored conventionally unless that form is requested.

A conceptual illustration, not a description of how HolaDB stores hotel data. Not every dataset has a useful pattern; when it doesn't, HolaDB uses conventional storage. Either way, queries return the original records.

Data is more than individual records.

A table is not a pile of unrelated rows. It is the trace of a process, and processes are regular.

HolaDB is built around one storage idea. When stored data contains a recurring pattern, the storage engine keeps the pattern in a compact form, together with what is needed to rebuild the original records exactly. When no pattern fits, the data is stored conventionally.

For an application nothing changes. You create tables, write SQL and open transactions. What changes is underneath, and it is checked: a compact form is kept only if it reproduces the original data exactly.

Databases save space in many ways, and this is one more. How much it helps, and on which kinds of data, is still being measured; this page makes no claim about it.

  • Keys count up.

    An identifier is usually the one before it, plus one.

  • Values repeat.

    A status, a country or a currency takes a handful of values across millions of rows.

  • Settings rarely change.

    Many columns hold the same value for long stretches, then change once.

From a connection
to the disk.

Seven layers between an application and the disk. They describe responsibilities, not packages: some layers span several Rust crates and two share one. Follow a path through them, or select a layer to see what it is responsible for.

Query path

What happens to a SELECT.

  1. ApplicationThe application sends SQL through a driver or SDK.
  2. ProtocolThe frame or PostgreSQL message is decoded into a request.
  3. ServerThe session is authenticated and the statement checked against the user's privileges.
  4. SQL engineThe text is parsed, bound to the catalog and planned.
  5. Transaction engineThe statement reads the latest committed state, plus its own transaction's writes.
  6. StoreRows are located by key or through a secondary index.
  7. Storage engineRecords are read from current state; sealed segments are checked against their hashes when a table is opened.
  • The engine is independent of SQL, the catalog and the protocol.
  • SQL is independent of how data is stored.
  • The backup format is independent of the network protocol.

What makes HolaDB different.

Four themes, and for each one what is built, why it matters, and how far along it is.

  • Implemented and tested
  • Experimental
  1. Pattern-aware storage

    Experimental
    What is built
    Sealed segments can be stored conventionally or in a compact representation the engine derives from the data. A controller with explicit states and a journal makes that decision, verifies every representation against the original before trusting it, and falls back to conventional storage otherwise. In this beta, tables created through SQL are stored conventionally unless the compact form is requested at the engine level.
    Why it matters
    This is the question the project exists to investigate. The mechanism is implemented and tested; how much it helps, and on which kinds of data, is still being measured and is not claimed here.
  2. Structured data retrieval

    Implemented and tested
    What is built
    The engine keeps the current state of every row and a persisted record index, so a read by key does not replay history. Secondary indexes, ordered scans and paged cursors sit on top, and the representation underneath never changes a query's result.
    Why it matters
    A storage idea is only useful if ordinary reads stay ordinary. Whatever form a segment is kept in, the row that comes back is the row that went in.
  3. Conventional database capabilities

    Implemented and tested
    What is built
    A defined single-table SQL subset with tables, indexes, filters, ordering and whole-table aggregates. Multi-statement transactions. A PostgreSQL wire-protocol endpoint and client SDKs. Users, roles and privileges.
    Why it matters
    You should not have to learn a new model to try a new engine. The subset is deliberately small: joins, subqueries and GROUP BY are not implemented, and a statement that needs them is refused with an error that names the construct.
  4. Reliability and recovery engineering

    Implemented, testing continues
    What is built
    By default a commit is synced to the log before it is acknowledged. Segments carry content hashes. Recovery runs on every open. Backups are verified file by file and can be restored to an earlier commit.
    Why it matters
    A database earns the right to experiment with representation only by being strict about durability first. Recovery after a process crash is tested; power loss is checked with a simulated test matrix, and a test on a real file system is still to run.

Familiar from the first command.

Tables, SQL and transactions, over HolaDB's native protocol or the PostgreSQL wire protocol. The examples here are taken from the project's own documentation, not written for this page.

Native protocol
holadb:// on port 7433, holadbs:// with TLS
PostgreSQL protocol
Off unless --pg is given (port 5433 in these examples). Simple and extended query
Tested PostgreSQL client
psql. Other PostgreSQL drivers may work for the supported subset and are untested
Clients
TypeScript, Python and Rust SDKs, a command-line client and Studio. The SDK packages are not published yet
CREATE TABLE products (
  sku   TEXT PRIMARY KEY,
  name  TEXT NOT NULL,
  price DOUBLE PRECISION,
  stock INT DEFAULT 0
);
CREATE INDEX products_price ON products (price);

INSERT INTO products VALUES
  ('A1', 'bolt', 0.25, 500),
  ('B2', 'nut',  0.10, 800);

SELECT sku, price FROM products
 WHERE price < 0.2 ORDER BY price;

BEGIN;
UPDATE products SET stock = stock - 10 WHERE sku = 'A1';
UPDATE products SET stock = stock + 10 WHERE sku = 'B2';
COMMIT;

Schema, data and a transaction. Statements are HolaDB's own single-table SQL subset.

Find out,
then say so.

There are no benchmark figures on this page, on purpose.

Storage, latency, recovery and endurance are measured throughout development. Those results will be published once they have been reviewed, together with the machine, the workload, the method and the limits of each test. Until then, these are the rules the engineering is held to.

  • Refuse, never approximate.

    Anything outside the supported SQL is rejected with an error that names it. Nothing is silently ignored or guessed.

  • Verify before trusting.

    Sealed segments are checked against their content hashes when a table is opened, before any of its data is served. An index that cannot be verified is rebuilt from the log.

  • Efficiency has to prove itself.

    A compact representation is kept only when it reproduces the original data exactly. Otherwise the segment stays in conventional form.

  • Durable means synced.

    By default a commit is acknowledged only after its log record is synced. A write that fails is reported as failed, and when an outcome cannot be known, the server says so instead of picking one.

  • Crashes are an ordinary input.

    Recovery after a process crash is not a special mode. It is what opening a database does, every time.

  • Measure, then write it down.

    Behaviour is tested under sustained load, and the limits found are recorded beside the results. Unsafe Rust is forbidden in every crate.

The unglamorous part, done first.

A new idea about storage is worth nothing on top of a database that loses writes. Most of the work in HolaDB is here.

CapabilityWhat HolaDB doesWhy it matters

Transactions

Changes commit together or not at all, including across tables. Isolation is read committed with optimistic validation: the first committer wins and the other retries.

A transfer is applied as a whole or not at all.

Write-ahead logging

A commit is written to the table's log and synced before it is acknowledged. This is the default setting.

Recovery after a process crash is tested: the commits that were acknowledged are read back from the log on the next open.

Persistence

The log is sealed into immutable segments that carry content hashes, checked when a table is opened.

A segment that fails its hash check stops the open and is reported instead of quietly served.

Recovery

Each open replays the log, discards a torn tail, rolls back unfinished transactions and rebuilds what it cannot verify.

After a process crash there is no repair procedure to remember.

Backup and restore

Offline, online and incremental backups, each file hashed with SHA-256, with log archiving for restoring to an earlier commit.

Recovery cannot undo a mistake or a failed disk. A verified backup can.

Authentication and TLS

Users, roles and per-table privileges checked on every request. SCRAM-SHA-256 on both protocols, with channel binding over TLS.

With SCRAM the password itself is not sent over the connection, and a revoked user loses access at the next statement.

What is tested, and what is not: recovery after a process crash is tested. Power-loss behaviour is checked with a simulated test matrix; a test on a real file system is still to run. No database can promise that every failure is survivable, and this one does not. Recovery does not repair storage that fails its hashes or undo a committed transaction; both need a backup.

Developer beta in preparation

Beta status and known limitations.

HolaDB is preparing its first developer beta. Nothing is released yet, and no release date has been set.

The beta is for evaluation and feedback. It is not ready for production workloads or for data you cannot afford to lose. This page changes when the project does.

What the beta supports

  • Single-table SQL: tables, indexes, inserts, updates, deletes, filtered and ordered selects, whole-table aggregates
  • Transactions at read committed, with conflicts detected at COMMIT. Several clients can write at once; statements run one at a time
  • Native protocol and PostgreSQL wire protocol
  • SCRAM-SHA-256 authentication and TLS
  • Recovery after a process crash, checked by a simulated power-loss test matrix
  • Backup, snapshot, archive and restore

Known limitations: not supported yet

  • Joins, subqueries, GROUP BY and HAVING, UNION, common table expressions and window functions
  • Views, triggers, foreign keys, CHECK constraints, RETURNING and ON CONFLICT
  • NUMERIC, DATE and UUID types
  • Data larger than memory: every table is held in memory
  • A power-loss test on a real file system; it has not run yet
  • Linux on ARM64 (not yet verified), a macOS bundle, and Windows (unsupported)
  • PostgreSQL clients other than psql: they may work for the supported subset and are untested
  • Downloads: the binaries come with the beta
  • Licensing and source availability: not decided yet

Platforms

Tested platform
Linux on x86-64. This is the only platform the beta is tested on.
Not yet verified
Linux on ARM64.
Not available
A macOS bundle. Windows is unsupported.

Licensing and availability.

HolaDB is preparing its first developer beta. Licensing and source availability details will be announced with the release.

Nothing can be downloaded yet, and there is no public repository. This section will be replaced by the actual terms when they are announced.

  • Licence

    Not decided yet. The terms will be announced with the release. Until then nothing on this site grants a licence to use HolaDB.

  • Source availability

    Not decided yet. Whether and how the source code is made available will be announced with the release. There is no public repository today.

  • Feedback

    The developer beta is for evaluation and feedback. How to send feedback and report problems will be described with the release.

  • Security reports

    Vulnerabilities are handled privately through a written disclosure process: a private report, an acknowledgement within three business days, a fix, then an advisory. How to send a report will be published with the release.

Where to start.

This is where the first developer beta will be published. Nothing is available to download yet; the files below come with the beta.

First developer beta

In preparation, not yet released

  • Linux, x86-64 Server and command-line client, glibc
    Coming with the beta
  • Container image, Linux x86-64 Runs as a non-root user
    Coming with the beta
  • Checksums SHA-256 for every file in the bundle
    Coming with the beta

Tested platform: Linux on x86-64. Linux on ARM64 is not yet verified, there is no macOS bundle, and Windows is unsupported. Release files will carry checksums, not signatures. Licensing and source availability details will be announced with the release.

Until the beta is out

  1. Read the beta statusWhat the beta supports, what it does not support yet, and the tested platform.
  2. See the storage ideaA four-step illustration with a hotel room's status history.
  3. Look at the examplesSQL, the TypeScript SDK, and connecting with psql.

What the first five minutes will look like

A database is a directory. Create one, serve it, and connect with psql or open Studio in a browser. These are the commands from the project's own quick start; they need the beta binaries.

holadb init ./shop
holadb serve ./shop \
  --listen 127.0.0.1:7433 --pg 127.0.0.1:5433

psql postgresql://me@127.0.0.1:5433/holadb
holadb studio holadb://127.0.0.1:7433

What to expect from a beta

  • It is for evaluation and feedback, not for data you cannot afford to lose.
  • The SQL surface is a defined subset and will grow.
  • The known limitations are listed above and will ship with the release notes.

Questions,
answered plainly.

Is HolaDB a fork of PostgreSQL?

No. HolaDB is written from scratch in Rust and shares no code with PostgreSQL. It implements the PostgreSQL wire protocol so that psql can connect; other PostgreSQL drivers may work for the supported subset and are untested. The SQL it accepts is its own subset and the storage engine is its own.

What is different about how it stores data?

Writes go to an append-only log, which is periodically sealed into immutable segments. When a sealed segment contains a recurring pattern, it can be kept in a compact form together with what is needed to rebuild the original records exactly. That form is accepted only after it is checked against the original; when no pattern fits, the segment is stored conventionally. It is an internal matter: queries, the protocol and backups look the same either way.

Can I use it in production?

Not yet. HolaDB is pre-1.0 and still being tested. The first developer beta is meant for evaluation, experiments and feedback, not for data you cannot afford to lose.

Which SQL does it support?

Single-table SQL: creating and altering tables, creating and dropping indexes, inserts, updates, deletes, filtered and ordered selects with limit and offset, whole-table aggregates, EXPLAIN, transactions, and statements for users, roles and privileges. Not implemented: joins, subqueries, GROUP BY and HAVING, UNION, common table expressions, window functions, views, triggers, foreign keys, CHECK constraints, RETURNING and ON CONFLICT. Types cover booleans, integers, floats, text, bytes, timestamps and JSON; there is no NUMERIC, DATE or UUID type yet.

How does it protect my data?

By default a commit is acknowledged only after it is written to the write-ahead log and synced. Recovery runs automatically on every open, and recovery after a process crash is tested. Power-loss behaviour is checked with a simulated test matrix; a test on a real file system is still to run. Sealed segments carry content hashes that are checked when a table is opened, so a damaged file stops the open and is reported instead of read past; damage that happens while the server runs is found at the next start or by the verify command. Backups are verified file by file with SHA-256.

How does it handle concurrency?

Several clients can write at once; statements run one at a time; conflicting transactions are detected at commit. Isolation is read committed: if a row you wrote was changed by another transaction first, your COMMIT fails with a conflict error and you retry.

Which platforms does it run on?

Linux on x86-64 is the only tested platform. Linux on ARM64 is not yet verified, there is no macOS bundle, and Windows is unsupported.

Does my data have to fit in memory?

Yes, for now. Every table is held in memory, so a database is limited by the memory of the machine it runs on.

What is the licence, and is the source available?

Neither is decided yet. HolaDB is preparing its first developer beta. Licensing and source availability details will be announced with the release.

When will the beta be released?

No date has been set. This page will be updated when the beta is published.