After a H2 database corruption, I'm considering migrating to mysql. But in my first attempt, I'm loosing lots of data (with H2 it was a nice continuous curve):
I could find the following quote in the perfino.properties
:
Please note that it is possible to configure MySQL in such a way that it will not work with the perfino connection pool, including (but not limited to) setting low values for max_allowed_packet or max_connections.
Unfortunately, I couldn't find any documentation about mysql recommended configuration. I have fiddled a bit with my.cnf
but either I have yet to find the optimal configuration, or mysql is not appropriate as persistence solution for perfino.
Does anyone have any suggestions?
Edit
I found remarkable the difference in the telemetry "JDBC Average Statement Execution Time" for Perfino:
- Using H2: about 25 us.
- Using MySQL: about 5 ms.
The corresponding comparison:
I'm attaching another screenshot, just to make the problem more evident: