Directory
Open Source Databases: 21 Engines, Two That Aren't
License, category and the catch for each of the twenty-one engines people actually deploy, grouped by what they are good at — with the two that are source-available rather than open source marked as such.
Licenses and pricing structure last checked: 24 November 2026
The license decides more than the benchmark
Most comparisons of databases start with throughput numbers. That is the wrong first question. The first question is what license the engine is under, because it decides what you are allowed to do with it later.
A database under a permissive license such as Apache-2.0, MIT or the PostgreSQL License can be embedded in a commercial product, offered as a hosted service to your own customers, and forked if the maintainer goes in a direction you cannot follow. A database under the GPL can be self-hosted and modified freely, but shipping it as part of a proprietary product needs legal review. A database under a source-available license such as SSPL, BSL, RSAL, the Elastic License or ScyllaDB's own agreement can often be read and self-hosted, but usually cannot be offered to others as a service.
The distinction has moved real projects in the last few years: Redis left the BSD license in 2024, which produced the Valkey fork; Elasticsearch left Apache-2.0 for SSPL and now carries a triple choice of AGPLv3, SSPLv1 and the Elastic License; MongoDB has been on SSPL since 2018; and ScyllaDB's repository now carries its own source-available agreement instead of the AGPL. If you are choosing a database to keep for ten years, that history is a risk factor worth pricing in.
Two engines on this page are not open source at all: ScyllaDB and Memgraph. They are here because people deploy them, and each entry says so plainly rather than filing them under a heading they do not belong in.
If you self-host only for your own applications, most of these licenses do not restrict you. If you plan to resell, embed, or build a managed service, the license column below is the one that matters.
All twenty-one at a glance
| Engine | License | Category | Self-host cost |
|---|---|---|---|
| PostgreSQL License | Relational | A server or container you already pay for | |
| GPL-2.0 | Relational | Same | |
| GPL-2.0 + commercial | Relational | Same | |
| Public domain | Embedded | Nothing — it is a library | |
| SSPL | Document | Same as any server | |
| Apache-2.0 | Document (on Postgres) | Adds load to your Postgres box | |
| Apache-2.0 | Document | Same as any server | |
| Apache-2.0 | Analytical | Wants RAM and fast disks | |
| MIT | Embedded analytical | Nothing — single file | |
| Apache-2.0 | Analytical | Several services to run | |
| Apache-2.0 | Wide-column | Three nodes minimum to be useful | |
| ScyllaDB Source Available 1.1 | Wide-column | Fewer nodes than Cassandra | |
| BSD-3-Clause | Key-value | Small | |
| RSALv2 / SSPLv1 / AGPL-3.0 (pick one, 8.0+) | Key-value | Small | |
| Apache-2.0 / MIT (dual) | Time series | Small to medium | |
Apache-2.0 core, Timescale License in tsl/ |
Time series (Postgres extension) | Your Postgres box | |
| Apache-2.0 | Time series | Small | |
| AGPLv3 / SSPLv1 / ELv2 (pick one) | Search | RAM-hungry | |
| Apache-2.0 | Search | RAM-hungry | |
| GPL-3.0 | Graph | Medium | |
| BSL 1.1 + Memgraph Enterprise — source-available, not open source | Graph | Medium |
Relational engines
PostgreSQL
Permissive license, an extension ecosystem nothing else approaches, and no single company that can change the terms. Extensions such as PostGIS and TimescaleDB live in the same database rather than next to it. The catch is operational: default settings are tuned for a machine far smaller than yours, and autovacuum needs watching on write-heavy tables.
MariaDB
The community fork of MySQL, kept under GPL-2.0 after MySQL went dual-license under Oracle. For most applications written against MySQL 5.7 it is a drop-in replacement. The catch: not every MySQL 8 feature was ported, and the two have drifted far enough that testing before migrating is not optional.
MySQL
Still the most widely deployed relational database, under GPL-2.0 with a commercial license sold separately by Oracle for embedding in proprietary products. The catch is not technical but institutional: several large users have moved to MariaDB or PostgreSQL rather than depend on it.
SQLite
Public domain, and not a server at all — a library that reads and writes a single file. It is the correct choice for desktop apps, mobile apps, edge functions and read-heavy sites, and it handles far more traffic than people assume. The catch: one writer at a time, so it is the wrong tool the moment several machines need to write concurrently.
Document stores
MongoDB
SSPL since 2018 — the repository's LICENSE-Community.txt is the Server Side Public License v1 dated 16 October 2018, which is why the major cloud providers offer older permissively licensed forks rather than the current release as a managed service. Flexible schema and the widest driver ecosystem of any non-relational database. The catch: the license, and the fact that schema-free does not mean modelling-free.
FerretDB
Apache-2.0, and an interesting trick: it speaks the MongoDB wire protocol and stores the data in PostgreSQL. If your application was written against MongoDB but you want Postgres underneath, this is the migration path that does not require rewriting queries. The catch: it does not implement every MongoDB feature, so check the compatibility list against what your app actually calls.
CouchDB
Apache-2.0, maintained by the Apache Software Foundation, with replication built into the core rather than bolted on. Good for apps that need to sync between devices and a server. The catch: querying goes through map/reduce views, which is a different mental model from SQL, and the surrounding ecosystem is small.
Analytical engines
ClickHouse
Apache-2.0, column-oriented, and genuinely fast on aggregations over billions of rows. It has become the default answer for product analytics that outgrew Postgres. The catch: it is not a transactional database. Frequent single-row updates and deletes are the pattern it handles worst.
DuckDB
MIT, embedded, single file, and column-oriented like ClickHouse — but it runs inside your process the way SQLite does. Excellent for analysing a Parquet file or a CSV on a laptop. The catch: single writer, and it is an analysis engine rather than a server you can point an application at.
Apache Druid
Apache-2.0, built for real-time analytics on event streams with sub-second queries. The catch: it is a system of several services, not a single binary. If you do not have someone who enjoys operating distributed systems, ClickHouse or Postgres will get you further.
Wide-column stores
Apache Cassandra
Apache-2.0, designed for writes across multiple data centres with no single point of failure. The catch: eventual consistency and a query model you must design before you write data, not after. It is also not a small deployment — three nodes is the practical minimum.
ScyllaDB
A C++ rewrite that speaks the Cassandra protocol with lower tail latency and fewer nodes — but read the license before you design around it. The repository's license file is a ScyllaDB Software License Agreement (version 1.1, last updated April 2026), not the AGPL and not any OSI-approved license: it grants rights to entities that have not been paying customers, caps the volume you may use, and expects commercial deployments to buy a license. This is one of two engines on this page that is source-available rather than open source. The catch: the operational model is still Cassandra's, and the licensing question now comes before the technical one.
Key-value stores and caches
Valkey
BSD-3-Clause, created by the Linux Foundation after Redis changed its license in 2024. A drop-in replacement for the Redis most applications use. The catch: it is a fork, so features added upstream after the split are not there, and the long-term direction is set by a foundation rather than a company.
Redis
From Redis 8 the license is a three-way choice: RSALv2, SSPLv1 or AGPL-3.0, with each contributor choosing one. Releases 7.2 and earlier remain BSD-3-Clause. Still the reference implementation with the richest module ecosystem. The catch: the license history is the reason several large deployments moved to Valkey, and the terms differ between versions — check which one you are installing.
Time-series databases
InfluxDB 3 Core
Dual-licensed: the repository ships both an Apache-2.0 and an MIT license file, so you take whichever terms suit you. Built specifically for metrics and events, with a query layer that speaks SQL and InfluxQL. The catch: 3.x is a rewrite, so tooling and query-language guidance written for 2.x does not all carry over.
TimescaleDB
An extension to PostgreSQL rather than a separate database. Its license file is a map rather than a single answer: everything outside the tsl/ directory is Apache-2.0, everything inside tsl/ is under the Timescale License, and the build produces separate shared objects so you can tell which is which. You get time-series compression and continuous aggregates without adding a second system to operate. The catch: some of the features people actually want live on the Timescale-licensed side, and you are tied to Postgres's upgrade cadence. One more thing to know before clicking: timescale.com now redirects to tigerdata.com, the company's current name.
QuestDB
Apache-2.0, written for high-ingest time-series workloads with SQL and time-series-specific syntax. Fast ingestion, small footprint. The catch: a much smaller ecosystem than the alternatives here, so fewer answers when something goes wrong.
Search engines
Elasticsearch
The repository's LICENSE.txt does not name one license. The default is a triple choice — AGPLv3, SSPLv1 or the Elastic License 2.0 — while some files are Apache-2.0 compatible and everything under x-pack/ is Elastic License 2.0 only. In practice: open source unless you need the commercial features. The most complete search stack, with aggregations that double as an analytics engine. The catch: it is memory-hungry, and the license has changed twice, so hosted-service terms deserve a read.
OpenSearch
Apache-2.0, forked by AWS from Elasticsearch 7.10 when the license changed. If you want a permissive search engine with no license ambiguity, this is it. The catch: it is a fork, so features added upstream since 2021 arrive late or not at all.
Graph databases
Neo4j Community Edition
GPL-3.0 for the community edition, with clustering and hot backups reserved for the commercial edition. The repository's LICENSE.txt states GPLv3 applies to all third parties, with a commercial agreement superseding it where one exists. The reference graph database, with the query language most graph tooling targets. The catch: the features most teams want in production are the ones not in the free edition.
Memgraph
Not open source. The repository's license file divides the code between the Business Source License 1.1 and the Memgraph Enterprise License, both of which are source-available: BSL restricts offering the software as a competing service until its change date passes, and the enterprise portions stay proprietary. In-memory and Cypher-compatible. The catch: if open source is a hard requirement for your legal team, this does not qualify — and it is the second of the two engines here that does not.
How to choose in ten minutes
Start from the shape of the data and the read pattern, not from benchmarks.
- Transactions, joins, and you want to hire for it easily: PostgreSQL. MariaDB if you are already on MySQL.
- Data lives on a device or in a single process: SQLite, or DuckDB if the workload is analytical.
- Documents with flexible schema and you can accept SSPL: MongoDB or FerretDB.
- Billions of rows and dashboards, rarely updated: ClickHouse.
- Metrics arriving every second: TimescaleDB if you are already on Postgres, InfluxDB 3 or QuestDB if not.
- Full-text search with faceting: OpenSearch for a permissive license, Elasticsearch for the larger ecosystem.
- Write-heavy across regions: Cassandra or ScyllaDB — and only if you have the operations capacity.
- Cache and queues: Valkey if the BSD license matters, Redis if you need the modules.
One rule that saves money: do not run a second database engine until the first one has been measured and found insufficient. Two engines means two backup strategies, two upgrade paths and two things to page you at night.
Questions
Is PostgreSQL really free for commercial use?
Yes. The PostgreSQL License is permissive and OSI-approved: you can use it commercially, embed it in a product you sell, and redistribute it without paying anyone or publishing your own code.
Which of these can I offer as a hosted service to my own customers?
Apache-2.0, MIT, BSD and the PostgreSQL License engines: yes. GPL engines: only if you are prepared to release the source of what you distribute around them. SSPL, BSL, RSAL, the Elastic License and ScyllaDB's own agreement: generally no, which is exactly why those licenses exist. Memgraph and ScyllaDB both sit on that side of the line.
Why are two of the twenty-one not open source?
Because people deploy them and the comparison is more useful with them in it. ScyllaDB and Memgraph are widely described as open source; they are not, and the whole point of this page is that the license column should say what the vendors' marketing does not.
Is SQLite suitable for a production web application?
For a read-heavy site with modest write volume, yes — and it removes an entire server from your stack. The limit is concurrent writers: once several processes need to write at the same time, move to a client-server engine.
Do I need Kubernetes to run these?
No. Every engine on this page runs from a single container or a package install. Cassandra, ScyllaDB and Druid are the ones that become a distributed-systems project, and that is a people question before it is a technology question.
Where each license claim comes from
Every row was read from the project's own license file or license page on 24 November 2026. Where a project splits its code across more than one license, the split is stated rather than hidden behind the friendliest name. How these are checked, and what we got wrong.
| Project | License as stated in its own file | Source |
|---|---|---|
| PostgreSQL | PostgreSQL License — permission granted for any purpose, without fee | COPYRIGHT |
| MariaDB | GPL-2.0 | COPYING |
| MySQL | GPL-2.0 with additional linking permissions; a commercial license is sold separately by Oracle | LICENSE |
| SQLite | Public domain — affidavits on file; some autoconf build scripts carry other open-source licenses | copyright page |
| MongoDB | Server Side Public License v1, dated 16 October 2018 | LICENSE-Community.txt |
| FerretDB | Apache-2.0 | LICENSE |
| CouchDB | Apache-2.0 | LICENSE |
| ClickHouse | Apache-2.0 | LICENSE |
| DuckDB | MIT — Copyright 2018–2026 Stichting DuckDB Foundation | LICENSE |
| Apache Druid | Apache-2.0 | LICENSE |
| Apache Cassandra | Apache-2.0 | LICENSE.txt |
| ScyllaDB | ScyllaDB Software License Agreement 1.1 — source-available, not OSI open source; file last updated April 2026 | LICENSE |
| Valkey | BSD-3-Clause — Valkey contributors 2024 onwards, Redis Ltd. 2006–2020; the repo also ships per-directory files under LICENSES/ | COPYING |
| Redis | RSALv2 / SSPLv1 / AGPL-3.0, contributor's choice from 8.0; BSD-3-Clause for 7.2 and earlier | LICENSE.txt |
| InfluxDB 3 Core | Apache-2.0 and MIT, dual-licensed — the repository ships both files | LICENSE-APACHE |
| TimescaleDB | Apache-2.0 everywhere outside tsl/; Timescale License inside tsl/ | LICENSE |
| QuestDB | Apache-2.0 | LICENSE.txt |
| Elasticsearch | Triple: AGPLv3, SSPLv1 or Elastic License 2.0; x-pack/ is Elastic License 2.0 only | LICENSE.txt |
| OpenSearch | Apache-2.0 | LICENSE.txt |
| Neo4j Community | GPL-3.0, with a commercial agreement superseding it where one exists | LICENSE.txt |
| Memgraph | Business Source License 1.1 and the Memgraph Enterprise License — source-available, not open source | LICENSE |