Affects Version/s: 1.1.2
Fix Version/s: 1.1.3
We have experienced performance issues (relative to the MySQL Connector/J) when performing a Hibernate SchemaUpdate on a database with ~300 tables.
This has been tracked down to the difference in performance of DatabaseMetaData.getImportedKeys() between the two drivers. First with mariadb:
And then with MySQL Connector/J:
127sec vs 1.5s.
The attached example code gets the each table defined, and then calls getImportedKeys() on each one in turn.
Given the performance penalty of querying the information schema, it would probably be quicker to parse the output of 'show create table'.