We are using Hibernate on our application, and on startup it runs
We noticed that it was taking longer than usual, and maxing out the DB CPU.
After running SHOW PROCESSLIST; in the DB to see whats going on, we saw the application running queries like:
It scans the whole database, and its not even limited to the datasources.
NAME="Amazon Linux AMI"
PRETTY_NAME="Amazon Linux AMI 2018.03"
SHOW SCHEMAS is getting called multiple times, resulting on CPU spike