Play Framework takes too long to load with hibernate

Mr. Adobo

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?

Mr. Adobo

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

cURL takes too long to load

From Dev

WinForms control takes too long to load

From Dev

Devices & Printers takes too long to load

From Dev

MySQL LOAD XML takes too long (System lock)

From Dev

WordPress backend takes too long to load with Shepard theme

From Dev

Takes too long for any browser to load at the first time

From Dev

Set a condition to swap an image when it takes too long to load

From Dev

Entity Framework 6 - Group by then Order by the First() takes too long

From Dev

Entity Framework 6 - Group by then Order by the First() takes too long

From Dev

prop() takes too long

From Dev

removeFromSuperview() takes too long

From Dev

Play Framework takes extremely long time to resolve dependencies

From Dev

Play Framework takes extremely long time to resolve dependencies

From Dev

Play Framework 2 Stage Task on Windows, "The input line is too long"

From Dev

Play Framework 2 Stage Task on Windows, "The input line is too long"

From Dev

XPages typeahead takes too long

From Dev

mpirun takes too long to run

From Dev

JQuery : $.get() takes too long

From Dev

Mouse takes too long to be discovered

From Dev

Why dd takes too long?

From Dev

AVCaptureSession commitConfiguration() takes too long

From Dev

Timeout function if it takes too long

From Dev

mpirun takes too long to run

From Dev

RMySQL dbReadTable takes too long

From Dev

jarvis takes too long to respond

From Dev

BlackBerry - BrowserField takes too long to load a local html file when triying to import a css, and the stylesheet is not even applied

From Dev

kernel takes long load time

From Dev

Cancel Parse Request If It Takes Too Long

From Dev

Selenium - parsing a page takes too long

Related Related

HotTag

Archive