ORMReload Scanning All databases

Description

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.

Environment

NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

Status

Assignee

Unassigned

Reporter

Miguel Targa

Time tracking

0m

Affects versions

Priority

New
Configure