Best databases for healthcare and HIPAA

The right database for a healthcare workload depends on its data model, its license terms and the controls your team must run. This page compares PostgreSQL, MySQL, TimescaleDB and Redis with MongoDB Atlas and Redis Cloud.

On this page

Best databases for healthcare and HIPAA: which one fits which job

No database is HIPAA certified, so treat any vendor claim of certification as a reason to ask questions, and build the shortlist from platforms you can configure, audit and document yourself. For a system of record that holds patient or scheduling data, PostgreSQL is a sound first candidate: it is released under the PostgreSQL License, and its versioning policy sets out which major versions still receive fixes. MySQL is the right choice for teams that already run it, and its Community Edition under the GPL includes InnoDB Cluster and Group Replication with automated failover. Check your version today. PostgreSQL 14 was supported only until November 12, 2026, so a system still on it needs an upgrade plan to a supported major version such as 17 or 18. For any managed service, ask the provider whether it will sign a business associate agreement for the tier you need.

For device and vitals telemetry, TimescaleDB extends PostgreSQL for time-series data, but its license split matters before you build on it. The core is Apache 2.0, while code in the tsl directory falls under the Timescale License. Continuous aggregates, the columnstore (Hypercore), data retention policies, job scheduling and functions such as time_bucket_gapfill are available only in the Community Edition. You can run that edition in your own infrastructure for free, but you cannot offer it as a service to others, so have counsel confirm which terms cover your deployment. Redis fits caching and session data, where short-lived state is the goal and the record of care stays in your system of record. Redis 8 and later can be used under AGPLv3, an OSI-approved license, while Redis 7.4 through 7.8 use licenses that the OSI does not approve, so pin the version you deploy and check its license before you standardize on it.

Which database fits which healthcare workload

This table matches each healthcare workload to the database that most often fits it, with the licensing or support fact that shapes the choice. Read the Why column as the condition under which each option wins, not as a ranking. Managed services such as MongoDB Atlas and Redis Cloud are commercial, and MongoDB's server license is SSPL, which is not OSI-approved, so check those terms before you commit.

ScenarioBest fitWhy
New relational clinical or scheduling systemPostgreSQL (PostgreSQL License)Liberal open-source license, and 18 is supported until November 14, 2030. Choose it for a new build with no existing estate to match.
Existing MySQL estateMySQL Community Edition (GPL)Keep it where the estate already runs it. Pick an LTS line (8.4.11 or 9.7.2); Innovation releases are supported only until the next one.
Time-series vitals or device telemetry alongside PostgreSQLTimescaleDB Community Edition, self-hostedNeeds continuous aggregates or columnstore? Those are Community Edition only, and the Timescale License allows self-run in your own infrastructure.
Cache or session storeRedis Open Source 8, self-hosted (Redis Cloud is commercial)Redis 8 and later can be used under AGPLv3, an OSI-approved license. Redis 7.4 to 7.8 are RSALv2 or SSPLv1 only, neither OSI-approved.
Document-model application that wants a managed serviceMongoDB Atlas (commercial managed service)Commercial service. Server code after October 16, 2018 is SSPL v1.0, which is not OSI-approved. Confirm HIPAA terms with the vendor.
De-identified analytics next to the system of recordClickHouse (Apache-2.0)Column storage speeds aggregates but slows single-row lookups. Keep identified records in the system of record and load only de-identified extracts.
Air-gapped or own-data-center deploymentPostgreSQL or MySQL Community Edition, self-hostedBoth run as self-hosted software. Vendor-hosted Atlas and Redis Cloud cannot run inside an air-gapped network. Confirm your patch path offline.

What HIPAA leaves to your database configuration

HIPAA's Security Rule asks you to run a risk analysis and put administrative, physical and technical safeguards in place in proportion to the risks you find. A database supplies many of the technical controls, but it cannot make your deployment compliant on its own. Treat the database as a set of settings you configure, document and can show to a privacy officer or auditor. No database carries a HIPAA certificate, so a vendor who says its product is HIPAA certified should be asked exactly what was certified and by whom. The same applies to PostgreSQL, MySQL, TimescaleDB, MongoDB Atlas and Redis Cloud. The work sits in identity, network access, encryption, backup, logging and retention settings that your own team owns.

Start with access. For PostgreSQL, confirm the authentication method for each connection type in the pg_hba.conf file, using the methods described in the PostgreSQL authentication documentation, and decide which methods your security team accepts for clinical and administrative roles. For MySQL, confirm which authentication plugin your version supports and how privileged accounts are created and reviewed. For MongoDB Atlas and Redis Cloud, confirm which identity, user and network access options your plan includes, since these vary by tier. Then check encryption: confirm TLS for client connections, encryption at rest for data files and backups, and who holds the keys. Finally, confirm that audit logging records failed logins, privilege changes and reads of patient tables, and where those logs are sent. For PostgreSQL, check whether an extension such as pgaudit is part of your build, because audit logging is not the same as the standard server log.

How the best databases for healthcare and HIPAA compare on license and support

This table compares six database options on license, support window, high availability, backup, upgrade path and lowest managed price. Read the license column first, since the Timescale License, Redis RSALv2 and SSPLv1 terms can limit whether you may offer a database as a service, and confirm HIPAA-relevant controls such as audit logging and business associate terms with each vendor or host.

PlatformLicense, OSI status and supportHigh availability, backup and upgradesTime-series fit and managed price
PostgreSQLPostgreSQL License, similar to BSD or MIT. PostgreSQL 14 support ended on November 12, 2026. Version 18 is supported to November 14, 2030.Logical replication allows major upgrades with several seconds of downtime. Confirm HA and backup tooling in the PostgreSQL docs.General-purpose engine, so time-series workloads need extra design. Managed price depends on your cloud provider; confirm before quoting.
MySQL CommunityGPL, free to download. LTS support is 5 years premier and 3 years extended; confirm the paid Enterprise Edition split with Oracle.InnoDB Cluster and Group Replication with automated failover are in Community Edition. Confirm backup and upgrade steps in the MySQL docs.General-purpose relational engine, so time-series needs extra design. Managed price depends on your provider; confirm before quoting.
TimescaleDBApache 2 Edition is Apache-2.0. Community Edition uses the Timescale License, which is not OSI-approved and bars offering it as a service.Continuous aggregates, columnstore and retention policies are Community Edition only. Confirm HA and backup support for your build.Built for analytics on time-series and event data. Managed pricing: confirm with Tiger Data before quoting.
Redis Open Source 8Choose AGPLv3 (OSI-approved) or RSALv2 or SSPLv1 (not OSI-approved). Confirm the support window with Redis.Replication and backups are yours to design. Intel SVS-VAMANA optimizations are closed source and only usable under RSALv2.Includes time series and JSON, plus the Redis Query Engine. Hosting is your cost; no managed price applies.
Redis CloudManaged service under Redis Cloud terms, outside the open-source license choice. Confirm the support window in your subscription.Pro backups run on demand or at 1 to 24 hour intervals; Free plans cannot back up. Active-Active multi-region is listed for Pro.Redis pricing page lists Free at $0 for one 30 MB database; Essentials from $0.007 per hour (about $5 a month).
MongoDB AtlasServer Side Public License v1.0 (not OSI-approved) for releases after October 16, 2018. Confirm the Atlas support terms.mongodump exports restore into deployments on the same major or feature compatibility version. Confirm HA options with MongoDB.Confirm time-series fit in MongoDB docs. Lowest listed price: Atlas Free at $0 with 512 MB (MongoDB pricing page).

Where the licenses stop being OSI open source

The open-source side of this comparison is clear for three products, but the terms differ enough to affect a healthcare build. PostgreSQL is released under the PostgreSQL License, a permissive license similar to the BSD or MIT licenses, so you can run it, modify it and offer it inside a service without a source-sharing obligation. MySQL Community Edition is available under the GPL. That is open source, but it is copyleft, so distributing changed builds triggers obligations that counsel should review before you ship anything. Redis is the case where the version number decides the license. Redis 7.2.x and earlier use BSD-3-Clause. Redis Open Source 8.0 and later let you choose RSALv2, SSPLv1 or AGPLv3, and AGPLv3 is the only option in that set that is open source.

Several other licenses fall outside open source, and they are the ones to flag early. Redis 7.4.x through 7.8.x are dual licensed under RSALv2 or SSPLv1, and neither is OSI-approved, so a team that pins a 7.6 release in a new build inherits those terms. MongoDB states that server and tools releases published after October 16, 2018 fall under the Server Side Public License v1.0, which is not OSI-approved, while earlier releases fall under the GNU AGPL v3.0. TimescaleDB splits its code in two. Source outside the tsl directory is Apache License 2.0, but the Community Edition features, including continuous aggregates, the columnstore, data retention policies and job scheduling, sit under the Timescale License in the tsl directory.

The practical condition is who operates the database. Under the Timescale License, you can run TimescaleDB Community Edition for free on your own on-premises or cloud infrastructure, but you cannot offer it as a service. A healthcare software vendor that hosts the database for its customers therefore cannot run Community Edition. The Apache 2 Edition can be sold as a service, but it does not include the Community features, so the vendor must either drop those features or choose a different database. Before any build, write down which products you will run, which versions, and whether you will host them for customers, then have counsel confirm each license against that description. Ask the vendor for the license file that ships with the exact release and edition you plan to deploy.

What each database is for, and the license it ships under

Each card names the job a database is usually hired for, the license it ships under, and one condition that makes it a weak first choice for healthcare data. License alone does not settle HIPAA fit, since access control, encryption, backups and audit logging depend on how you configure and operate the database.

PostgreSQL relational database

General-purpose relational default for most application data, from scheduling to billing records. It ships under the PostgreSQL License, an OSI-approved permissive license similar to BSD or MIT, so self-hosting in your own account has no license fee. It is a weak first choice when no one on staff can run replication, failover and tested restores, since the documentation explains those steps but your team operates them. Start new builds on 17 or 18, because 14 reached end of support on November 12, 2026.

PostgreSQL licence

MySQL Community Edition

Free GPL build with two release tracks: MySQL Community Edition is licensed under the GPL, a copyleft license the OSI recognizes, and ships an LTS track and an Innovation track. It is a weak first choice if you plan to stay on an Innovation release, which is supported only until the next Innovation release arrives, so healthcare workloads belong on LTS lines such as 8.4 or 9.7. Paid support comes through MySQL Enterprise Edition, so price that route separately. Ask counsel what GPL duties apply if you modify the server and distribute it.

MySQL release model

TimescaleDB time-series extension

Apache 2.0 outside the tsl directory, Timescale License inside it: the Apache 2 Edition is the Apache-licensed route, while Community Edition adds continuous aggregates, the columnstore, retention policies and job scheduling. The Timescale License is not OSI-approved, but it lets you run Community Edition free in your own cloud or data center. It is a weak first choice for a health SaaS vendor that hosts the database for customers and needs those Community features, since the license bars offering it as a service.

TimescaleDB source

Redis Open Source 8

Choose one of three licenses at adoption: Redis Open Source 8 can be used under RSALv2, SSPLv1 or AGPLv3, and only AGPLv3 is OSI-approved, since RSALv2 and SSPLv1 are not. Redis Cloud is the managed route, with Free, Essentials and Pro plans. Redis Cloud Free cannot back up through the console, and paid Essentials plans back up every 24 hours. It is a weak first choice when Redis would hold the only copy of patient-linked data, because recovery depends on persistence and backup settings you must confirm before go-live.

MongoDB Atlas and Enterprise Advanced

Atlas is the managed service, and Enterprise Advanced is the commercial self-managed route, priced through sales and bundling Enterprise Server, Ops Manager and consultative support. The server is licensed under the SSPL v1.0, which is not OSI-approved, for releases after October 16, 2018, while earlier releases are under AGPL v3.0. It is a weak first choice when you need a self-managed deployment on a recent version under an OSI-approved license. Also test restores, because mongodump output restores into deployments on the same major version or feature compatibility version.

What self-hosting costs in license fees, staff time and upkeep

Self-hosting PostgreSQL, MySQL Community or TimescaleDB Community carries no license fee, so the budget is everything around the software. The PostgreSQL License, the GPL for MySQL Community and the Timescale License for TimescaleDB Community all permit running the software in your own infrastructure at no charge, although the Timescale License forbids offering it as a service. What recurs is the infrastructure (primary and standby nodes, backup storage, monitoring), the connection pooling layer such as PgBouncer, and the engineers who operate it. Standing up the cluster is mostly one-time work, while backups, patching and upgrades recur every cycle. Outside help, such as a DeployOpen engagement or retainer, is quoted from a written scope. Managed prices come from each vendor's pricing page, and enterprise support is priced through sales.

Effort rises with the number of clusters, the failover design and the upgrade cadence. Each cluster adds its own backups, monitoring and restore checks, so one consolidated cluster usually costs less to run than several small ones. Failover design drives the most work: MySQL Community includes InnoDB Cluster and Group Replication with automated failover, while PostgreSQL relies on replication and failover tooling your team selects and runs, so test the path you choose. Upgrade cadence is set by release policy. The PostgreSQL versioning policy calls for minor releases at least every three months and a new major about once a year, with each major supported for five years. PostgreSQL 14's support ends November 12, 2026, so any cluster still on it is already past that date. MySQL's LTS line gets five years of premier support and three of extended support, while Innovation releases are supported only until the next one.

Put these items in every written quote so the numbers compare. First, high availability scope: node count, the failover mechanism, whether failover is tested on a schedule, and who is paged when it fails. Second, backup and restore testing: where backups and archived logs live, whether point-in-time recovery is in scope, how often a restore is proven in a separate environment, and who signs off the result. Third, upgrade windows: how many minor and major upgrades the quote covers each year, the planned downtime for each, and the path off PostgreSQL 14 or any MySQL line nearing end of support. Fourth, the support contract: hours covered, response times, and whether PgBouncer and monitoring operations are included. Ask for each item as a separate line so any gap shows where your team stays on the hook.

How the shortlist narrows by data type and hosting model

The diagram starts from the four data types this page compares: relational system of record, time-series device data, cache or session data and document model. Each one feeds a single hosting decision. If the team must run the database in its own infrastructure, the path leads to the self-run candidates, PostgreSQL, MySQL and TimescaleDB, with Redis Open Source as the self-run option for cache or session data. If the team accepts a managed commercial service, the path passes a license and BAA check before MongoDB Atlas or Redis Cloud is considered. Both branches meet at the pilot gate, where license terms and the business associate agreement must be confirmed in writing before any pilot starts.

Data type feeds one hosting decision, and both branches meet at the pilot gate.

How to choose and pilot the best databases for healthcare and HIPAA

This sequence turns a shortlist into a database choice that security, compliance and counsel can review. Each step leaves a written record: the data inventory, the contract position, the pilot results and a scored comparison with a scope agreed before any build.

  1. List the data classes, workloads and retention rules

    Your security lead, data owner and application team list every data class each candidate database would hold, such as patient identifiers, clinical notes, billing records, audit logs and session data. For each class, record the workload it creates (transactional writes, reporting, time-series readings or caching), the retention period set by your policy or regulation, and whether records must be deleted on request. This step is done when one inventory sheet exists, every row has a named owner, and each shortlisted database is confirmed to be able to meet every row.

  2. Confirm license, hosting terms and BAA availability

    Ask each vendor in writing which license applies to the exact edition and version you would run, whether the hosting model is self-managed or vendor-hosted, and whether the vendor will sign a business associate agreement for that offering. Send the answers to counsel with the step one inventory, because license terms and BAA scope decide what you can operate and which parties handle protected health information. Open-source engines still need a check of any separate commercial or cloud-service terms for the edition you plan to deploy. This step is done when every vendor answer and counsel's review sit in one file and each open gap is logged as a risk.

  3. Pilot a backup restore end to end

    Your platform or database team loads a pilot instance with representative de-identified or synthetic records, takes a backup, and restores it into a clean environment. Check row counts, schema, indexes and application login against the source, and confirm how the backup is encrypted, where it is stored and who holds the keys. Record how long the restore takes so the recovery path is measured, not assumed, and note which backup tools each vendor provides for the engine you chose. This step is done when the database owner signs a restore report showing the data matches the source and the steps are written into the runbook.

  4. Test failover and review access and audit settings

    In the pilot, stop the primary node during a planned failover test and confirm that the replica or standby takes over, the application reconnects, and no committed writes are lost. Then walk through access and audit settings against your control list: authentication methods, role separation, administrator accounts, encryption in transit, and audit logging of reads and writes to protected data. Confirm which logs leave the database host and where they are retained. This step is done when a failover record shows the observed behavior and every control on the list has an owner, a result and a fix for each gap.

  5. Score the shortlist and agree a written scope

    Score each shortlisted database against the side-by-side table on this page, using the step one inventory, the step two contract answers and the step three and four pilot results as evidence. Weight the criteria that security and compliance leads set, and record the reason behind each score so reviewers can trace it. Once a leader is chosen, request a written scope from any implementation partner before build starts, covering deliverables, responsibilities for backups and patching, and acceptance tests. This step is done when security, compliance and the data owner approve the scored sheet and the signed scope names what will be built, tested and handed over.

What healthcare teams ask before picking and running a database

Does any open-source database make us HIPAA compliant?

No open-source database makes you HIPAA compliant, and no database product certifies that for you. HIPAA obligations sit with the covered entity or business associate that handles protected health information, so the evidence comes from your own risk analysis, access control, audit logging, backup and restore records, and vendor agreements. PostgreSQL, MySQL and TimescaleDB can support those controls through configuration, but the configuration, the operating records and the proof are your responsibility. If a third party hosts or can reach the data, confirm with counsel whether a business associate agreement is needed. Independent auditors and certification bodies issue audit reports and attestations. DeployOpen prepares systems, controls and evidence for those assessments, but it does not issue audit reports, attestations or certifications.

What do PostgreSQL or MySQL cost compared with managed services?

Neither the PostgreSQL License nor the GPL under which MySQL Community Edition is available charges a license fee, so the database software is free and your cost is the infrastructure, the people and any support you buy. Self-hosting recurs for compute, storage, backups, replicas, monitoring and the staff hours to run them. Managed services bundle those costs into a subscription. MongoDB's pricing page lists Atlas Flex from $0.011 per hour up to $30 a month and Dedicated from $56.94 a month. Redis's pricing page lists Essentials from about $5 a month, while Pro starts with a $200 monthly minimum. Those engines differ from PostgreSQL, so compare them on the workload each one must carry. MySQL Enterprise Edition is a separate commercial product, so ask Oracle for its terms. Ask every vendor for a written quote that separates one-time costs from recurring ones.

How much operating effort does a self-hosted database need?

Self-hosting needs a team that owns the database after go-live, and that team is your staff, a DeployOpen retainer, or a mix of both. The recurring work includes backups and restore tests, high availability and failover design, connection pooling, patching, monitoring, access reviews and capacity planning. PostgreSQL minor releases arrive at least once every three months and replace executables with a server restart. Major upgrades use pg_upgrade, a dump and restore, or logical replication, and logical replication can limit downtime to several seconds. Each path needs rehearsal on a copy. The effort rises with the number of clusters, the strictness of your recovery targets and the number of controls you must evidence. Before you commit, ask for a runbook, an on-call model and a named owner for each database.

How long does a database pilot or migration take?

No duration applies to every environment, so ask for the timeline in the written scope before you plan around any number. DeployOpen's engagements are mostly fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, which makes the drivers visible. The main drivers are the number of databases and applications, data volume, schema and data quality cleanup, how much protected health information and how many data flows are in scope, identity integration, backup and restore testing, change approval windows, and how long old and new systems must run in parallel. A move from a managed service also depends on the export path and the target version. Ask which dependencies your team must meet, such as access, staff time and test environments, what is excluded, how restore tests are counted and how cutover is planned.

Can we move from MongoDB Atlas or Redis Cloud to self-hosted later?

Yes, a move is possible, but it is only as safe as your last tested restore. For MongoDB, mongodump writes a binary export of documents, metadata, options and index definitions, and the output restores only into a deployment on the same major version or feature compatibility version, so plan any version gap before the move. Redis Cloud saves backups in RDB format, one file per shard, to AWS S3, Google Cloud Storage, Azure Blob Storage or an FTP or FTPS server you configure. Free plans cannot back up or export through the console, so confirm that your plan allows the export you need. For self-managed Redis, Redis 8 and later can be used under AGPLv3, while Redis 7.4 to 7.8 use dual RSALv2 or SSPLv1 terms that are not OSI-approved. Run a full restore into the target engine, check indexes, modules and key application queries, and record the result before you depend on the new system.

Can a healthcare software vendor offer TimescaleDB Community Edition as a hosted service?

No. Under the Timescale License, you can install TimescaleDB Community Edition in your own on-premises or cloud infrastructure and run it for free, but you cannot offer it as a service. The Apache 2 Edition is the build that can be sold as a service, and it lacks features that Community Edition provides, including continuous aggregates, the columnstore (Hypercore), data retention policies, job scheduling and time_bucket_gapfill. A healthcare vendor therefore needs to choose the edition its hosted product uses, then check the license for every file it ships, because the TimescaleDB repository ties the license to file location and build name. Running it for your own organization is a different case from selling access to customers. Confirm the delivery model with Tiger Data and your counsel before you design around either edition.

Which PostgreSQL version should a new build start on, now that 14 is unsupported?

Start a new build on PostgreSQL 18, which was first released on September 25, 2025 and is supported until November 14, 2030. PostgreSQL 14 is already past its support window, since support ended on November 12, 2026. PostgreSQL 15, 16 and 17 are supported until November 11, 2027, November 9, 2028 and November 8, 2029. Choose an older supported line only when a driver, extension or vendor component you must use has not been validated on 18, and confirm that in writing. A new major version ships about once a year and minor releases come at least every three months, so plan the upgrade path from the day you go live. Use pg_upgrade or logical replication for major upgrades, test them on a copy, and confirm that your application drivers and extensions support the target version. The PostgreSQL versioning policy lists the support dates.

How DeployOpen scopes a database selection and implementation

DeployOpen plans, implements, hardens, backs up and documents self-hosted databases inside your own cloud accounts, data centers or air-gapped networks. For healthcare and HIPAA, the work starts with a written scope that names which records each database holds and who can reach them, so your security and compliance teams can review the design before it goes live.

How we scope

  • Each engagement starts with a written scope, agreed before work begins, that names the databases, workloads and environments covered.
  • Scope covers which records each database holds, such as patient or claims data, and which access paths reach them.
  • Deliverables and timelines are written down with the scope, so your compliance team can review what was agreed.

How we build

  • Deployment into your own cloud accounts, data centers or air-gapped networks, with the database engine and version you choose.
  • Hardening and integration work on authentication, access control and audit logging, mapped to your identity provider and policies.
  • Backup and recovery set up and tested, including where backups are stored and who can restore them.

How we hand over

  • Documentation of the architecture, configuration, access model and backup procedures, written for your operations and compliance staff.
  • Evidence packs for compliance assessments: DeployOpen prepares the controls and evidence, while independent auditors issue any reports or attestations.
  • Handover to your team, with a list of open items to confirm with each database vendor before go-live.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Upgrade planning matters: PostgreSQL versioning policy shows PostgreSQL 14 support ended November 12, 2026, so confirm your major version.
  • Major version upgrades need a planned method, such as pg_upgrade or logical replication, agreed in the scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.