-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Performance issue initialising Hibernate on App Engine
PostPosted: Fri Oct 04, 2013 9:43 am 
Newbie

Joined: Sun Sep 29, 2013 3:45 pm
Posts: 1
Hi,

We're using Hibernate (without JPA) to manage data persistence towards Google Cloud SQL and we're experiencing serious performance issues when Hibernate initialises. This seems to occur in Configuration.buildSessionFactory(). I found some information on the Internet indicating that the problem might be caused by Hibernate scanning the class path for annotated entities. The question is how we can disable that feature so I can verify that this is indeed the problem. However, I can't find a property setting for hibernate.cfg.xml to do this. I found that JPA's persistence.xml has a boolean property <exclude-unlisted-resources> that might help but we're not using JPA...

Does anybody have experience with these startup problems? If so, is it caused by the class path scanning? Google assures us that the delay is not in setting up a connection with Google Cloud SQL. Indeed, when debugging I do not see any serious delays in the SessionFactory.openSession() which sets up the connection. The delay is purely in Configuration.buildSessionFactory().

Thanks!

Ralph


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.