My project uses Play Framework 2 with Hibernate and Postgres, but every time I have to reload to test something it takes a lot of time (about 2 minutes) to finally serve my request the first time (development mode).
So basically, its taking a lot of time to go from
[info] play - database [default] connected at jdbc:postgresql://myDBConnection
to
[info] play - Application started (Dev)
I tried lowering the log levels but nothing logs between those two so I have no idea what's going on in there that takes so much time, but it's seriously affecting my ability to work since it takes so long to load.
Is there any obvious or easy fix for this?
Just in case anyone else sees this, I managed to fix it by removing the JPA mappings and just using plain old hibernate like I would use it everywhere else. My connections went to 30+ secs in startup to about 2 secs. Much better!
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments