Hello.
During request processing i need to load a lot of entities (of two kinds). Maybe 4 or 5 thousands. Most of them are served from 2nd-level cache. The problem is dependency injection which is applied to every domain class killing application performance.
Profiler shows bottleneck is org.codehaus.groovy.grails.plugins.web.api.ControllersDomainBindingApi.autowire which calls GrailsMetaClassUtils.invokeMethodIfExists.
I tried to load entities from Controller and from Service classes. Results are the same.
Is it possible to disable this unnecessary DI feature for particular case or class?
My Grails version is 2.3.11.
Java 1.8