Hibernate performance after database restore, in Grails -


i'm not knowledgeable when comes hibernate, don't know answer.

i have system runs calculations , every day database backup, system backed daily.

this works fast when restore 1 of daily backups, (in mysql or in h2db) performance drops significantly.

hibernate has context, , flushing , stuff ...

can explain should do?

thanks in advance.

i restore mysql backups , not notice slow-down in grails performance. doubt there need on grails/hibernate end of things... unless leaving grails running , restoring db underneath it, have never tried. in case, may want try cleaning hibernate session la this post:

def propertyinstancemap = org.codehaus.groovy.grails.plugins.domainclassgrailsplugin.property_instance_map  private void cleanupgorm() {     def session = sessionfactory.currentsession     session.flush()     session.clear()     propertyinstancemap.get().clear() } 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -