Database choice
This page is for IT managers and administrators of a public body who choose the database under Exponential. The project's statement and the details per engine are in Database support; this page adds the questions public bodies ask.
Contents
The official order
Supported databases (Exponential 6.0.x), in order of preference: 1. SQLite 3 (the default) · 2. PostgreSQL · 3. MongoDB · 4. MariaDB · 5. Oracle · 6. MySQL. Microsoft SQL Server is known to be possible with additional work at this time.
All six have a driver in the kernel or a shipped extension, an entry in the setup wizard and a path in the command-line installers (Database support).
| Engine | In short |
|---|---|
| SQLite 3 | the default; no database server, the content repository is one file; for a site served from one machine |
| PostgreSQL | the recommended database server; tested in CI on every push |
| MongoDB | through an adapter; read its limits first |
| MariaDB | same driver as MySQL; the MySQL-compatible server the project prefers |
| Oracle | 19c and later through the ezoracle extension |
| MySQL | supported and tested; last in the order for new sites |
Questions for a public body
| Question | Why it matters |
|---|---|
| Which database does our IT already run and back up? | Existing skills and backup tooling count more than small differences |
| Is the engine's license acceptable under our policy? | Some bodies prefer free software servers |
| One machine or several web nodes? | SQLite suits one machine; several nodes need a database server |
| Does our cloud offer a managed service of that engine and version? | Check the version against the requirements |
| How do we restore, and how fast? | Test it (see "Exit planning") |
Typical choices
- A small site on one server, no database team: SQLite 3.
- A central IT with a standard database server: PostgreSQL, or the MariaDB/MySQL or Oracle the IT already runs.
- Several web nodes: a database server, not SQLite.
These are starting points, not rules; the hosting help compares the engines for hosts (Databases in the official order).
Changing later
A site can move between SQL engines with an engine-neutral dump and load, and into Oracle or MongoDB with their own scripts; plan a maintenance window and compare row counts afterwards (Moving a site to another database). The choice is therefore not permanent, which is itself a guard against lock-in.
Related pages
- Database support
- 9. Databases
- Changing the database engine
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.