Why is MySQL no longer supported?

941 views
Skip to first unread message

Koki Okubo

unread,
Jun 1, 2022, 4:09:51 AM6/1/22
to HAPI FHIR
Hi there,
We are using Maria DB 10.6.8 with HAPI FHIR 5.6, and have some questions about MySQL that is no longer supported by HAPI FHIR.
As My SQL and Maria DB are actually the same, we are wondering what problems would be expected in the future.
Also, we would like to know why MySQL-support was ended.
If anybody knows above information, please let us know!
Thanks.

Joel Schneider

unread,
Aug 21, 2022, 3:31:59 AM8/21/22
to HAPI FHIR
I'm also interested in the MySQL question.

We have a hapi-fhir version 5.6 system using MySQL 5.7.  When executing the hapi-fhir-cli migrate-database command for hapi-fhir version 5.7, it command returned an error saying, "FlywayException: Unsupported Database: MySQL 5.7" (for additional details, see issue #3444).  The root cause of the error seems to be the discontinuation of MySQL 5.7 support in the Flyway Community edition (as indicated in the Flyway MySQL documentation).  It was possible to avoid the error by using the hapi-fhir-cli migrate-database --dont-use-flyway option, but this seemed like a less-than-ideal solution.

I haven't seen an announcement saying hapi-fhir no longer supports MySQL, so I'm hopeful that migrating the database to MySQL 8 will enable the hapi-fhir-cli migrate-database command to once again use Flyway.




Kevin Dougan

unread,
Aug 22, 2022, 7:20:33 AM8/22/22
to HAPI FHIR
Smile CDR are the maintainers of hapi-fhir and they have provided some clarifications on their documentation site:

"Note that as of 2021.11.R01, MySQL is discouraged for production use due to performance limitations of the database. SmileCDR will continue to support customers on this database, but if serious performance issues arise, we will suggest migrating to a more performant database."



"Smile CDR can also run on the following database platforms, however these databases do not perform well at scale. Smile CDR recommends that these databases be used for testing purposes only.
  • H2
  • Derby
  • MySQL 5.7
  • MariaDB 10.1
"

I hope this helps clarify the situation!
Kevin

Joel Schneider

unread,
Aug 22, 2022, 3:53:40 PM8/22/22
to HAPI FHIR
Thanks, that's very informative.

In our case, the database backend we're using is Amazon Aurora MySQL.  I think this system is intended to perform well at scale.  However, we do use a MySQL JDBC driver to connect with it.

It would be interesting to know if there is guidance or tooling available to support migrating from MySQL to one of the more recommended platforms such as PostgreSQL, Oracle, or MS SQL Server.
 

James Agnew

unread,
Aug 22, 2022, 5:26:02 PM8/22/22
to Joel Schneider, HAPI FHIR
For what it's worth, our concern with MySQL is that it tends to perform poorly at scale for the specific way that HAPI FHIR uses it, when compared to PG (or Oracle/MSSQL/etc). Certainly I don't think it can't perform at scale (Uber uses it as a significant part of their backend, which must tell us something about its ability to work at scale) but in benchmarks we've done we tend to see 50-100% slower performance on MySQL than on any of the other supported databases.

I don't see us dropping support for MySQL completely, so if it's working for you with the performance you need it may well not be worth worrying about. But if you are planning a new deployment, I think it's worth considering using PG instead.

Cheers,
James



--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/cff9a934-7b24-48cc-a23e-33f7e17f2d67n%40googlegroups.com.

tomo yamano

unread,
Aug 22, 2022, 6:50:24 PM8/22/22
to James Agnew, Joel Schneider, HAPI FHIR
Thanks for the clarification James, 

I just wonder why MongoDB is not supported. All of them are RDBMS-based

Kevin Dougan

unread,
Aug 23, 2022, 10:26:35 AM8/23/22
to HAPI FHIR
MongoDB is actually supported, see the docs here:


"Non-Relational Database

The following database platforms are supported:

  • MongoDB 4.2

Sajith Jamal

unread,
Aug 23, 2022, 5:06:59 PM8/23/22
to Kevin Dougan, HAPI FHIR
Hi Kevin,

How much of Smile CDR's documentation is relevent to HAPI FHIR when it comes to the mongoDB setup?......I have not seen much related to mongo on HAPI's github.

Or is it only available if we buy Smile CDR?

regards,
Sajith

tomo yamano

unread,
Aug 23, 2022, 6:42:22 PM8/23/22
to Sajith Jamal, Kevin Dougan, HAPI FHIR

I think this is only for  the commercial product and not for the open-source . 

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.

Kevin Dougan

unread,
Aug 24, 2022, 8:00:25 AM8/24/22
to HAPI FHIR
Yes, that is correct.
In order to get MongoDB support you need to purchase Smile CDR.

Here is the list of databases supported on hapi-fhir:


Kevin

tomo yamano

unread,
Aug 24, 2022, 9:12:45 AM8/24/22
to Kevin Dougan, HAPI FHIR

It is generous yet. Thanks, Kevin

Reply all
Reply to author
Forward
0 new messages