Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Choosing a database in the official order

For public-sector architects and IT teams choosing the database of an Exponential site. The supported databases in the project's official order, how they compare for availability, backups and procurement, and how to…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/operations/hosting/database-choice-in-the-official-order.md

On this page

Choosing a database in the official order

This page is for architects and IT teams in public bodies who decide which database runs an Exponential site. It answers which databases are supported, in which order the project recommends them, what each means for availability, backups and procurement, and how to fit the choice to a database standard your organization may already have. The support statement is Database support; the hosting view is Databases in the official order.

Contents

  1. The official order
  2. Side by side for a public body
  3. Matching your database standard
  4. Which database for which situation
  5. Finding out what a site runs on
  6. Changing later
  7. Checklist

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 · 7. Microsoft SQL Server and Azure SQL (more databases from 6.0.15: Choosing a database).

The order is the order of recommendation for new sites; it does not mean the later ones work less well (Databases in the official order). Microsoft SQL Server and Azure SQL are supported from 6.0.15 (Microsoft SQL Server status); an organization that only runs SQL Server can use it from that release on.

Side by side for a public body

1. SQLite 32. PostgreSQL3. MongoDB4. MariaDB5. Oracle6. MySQL
Database server to runnone (one file)yesyesyesyesyes
Several web servers on one databasenoyesyesyesyesyes
Replication of its ownnoneyes, with point-in-time recoverysee vendorsee vendorsee vendorsee vendor
Read replicas used by Exponentialnononoyes (UseSlaveServer)noyes (UseSlaveServer)
Backup toolsqlite3 .backuppg_dumpmongodumpmariadb-dumpext:ezoracle:datapump, expdpmysqldump
Tested in the project's CIdriver unit testsyesadapter unit testsvia the MySQL jobnoyes

Sources: Database support and the per-engine hosting pages. Read replicas are only built in for the MySQL driver, which MariaDB shares; see Read replicas.

Matching your database standard

Many public bodies have a database standard set by central IT, with database administrators, licenses and backup tooling already in place. That often decides more than technical preference:

Your organization standardizes onConsiderNote
PostgreSQLPostgreSQLthe recommended database server; needs pgcrypto (PostgreSQL for hosts)
MariaDB or MySQLMariaDB, or MySQLsame driver; utf8mb4 and InnoDB (MariaDB for hosts)
OracleOracle 19c or laterthrough the ezoracle extension and oci8 (Oracle for hosts)
MongoDBMongoDBread its documented limits first (MongoDB for hosts)
no database standard, one machineSQLite 3nothing extra to run, license or patch

Choosing the engine your database team already operates usually brings monitoring, backups and on-call support with it. That is worth more than small differences in features.

Which database for which situation

SituationChoiceWhy
One site, one machine, small teamSQLite 3no database server; backups are a file operation done with SQLite's own tool
More than one web server must serve the sitea database server, PostgreSQL firstSQLite needs every process on one machine
Many editors publishing large changes all daya database serverSQLite queues writers for one lock
A continuity duty that needs a standby databasePostgreSQL, or your standard server engine with its replicationSQLite has no replication of its own
Database-level users and grants are required by policya database serverSQLite's access control is the file system's

Finding out what a site runs on

One setting decides the engine:

grep -rn "DatabaseImplementation" settings/override settings/siteaccess/*/site.ini.append.php settings/site.ini

The values are sqlite3, ezpostgresql (or pgsql), mongodb, ezmysqli and, with its extension, ezoracle (Operating a site). The Setup > System information page shows the database too (System information).

Changing later

A site can move to another engine; the hosting page Changing the database engine describes how. Treat it as a planned change with its own backup and test restore. Starting with SQLite and moving to PostgreSQL when a second web server is needed is a documented path.

Checklist

  • To do: The chosen engine is one of the seven; Microsoft SQL Server is not assumed to work.
  • To do: It matches your organization's database standard, or the exception is recorded.
  • To do: Availability needs (several web servers, a standby) are compatible with the engine.
  • To do: The backup tool of the engine is part of your backup plan.
  • To do: The database team knows the minimum versions in Database support.

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x