puneetbehl opened a new issue, #14360:
URL: https://github.com/apache/grails-core/issues/14360
When using the old version 7.3.0, the application starts up in ~4 minutes.
But when using the newer version that the Grails cli defaults to for a Grails
4.1.1 application (which is hibernate-core:5.4.18.Final), it takes the
application >15 minutes to start.
The application is using Multi-Tenancy with over 40 datasources. In
4.0.3/GORM 7.0.4/Hibernate 5.4.0, it takes ~6--7 seconds to configure each
datasource. We are trying to move the app to 4.1.1/GORM 7.0.9/Hibernate
5.4.18. With that configuration, each datasource is now taking ~20-25 seconds
to configure.
We've noticed that if we go back to Hibernate 5.4.0 we get the old faster
startup time, however there are places in the code where we do the following:
```
MultiTenantDomain.withSession { Session session->
session.doWork(...
}
```
Which now appears to throw an exception of
```
Caused by: java.lang.NoSuchMethodError: 'void
org.hibernate.SharedSessionContract.doWork(org.hibernate.jdbc.Work)'
```
_Originally report by [billgonemad](https://app.slack.com/team/UFZC8J0CQ)
and [osh Overbeck](https://app.slack.com/team/U01DALZULVD) on Grails Slack._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]