-->
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.  [ 6 posts ] 
Author Message
 Post subject: Hibernate 2.1 too much network activity fix?
PostPosted: Tue Nov 08, 2005 4:12 pm 
Newbie

Joined: Wed Dec 08, 2004 1:58 pm
Posts: 7
Hibernate version: 2.1

I have an application that is accessing a database that is across the country. So there is some network latency. When the database and the client are colocated (same coast) the application saves a large object model in 2-3 seconds. When the database is across the country it is more like a minute. Does anyone know how to improve performance while sticking to version 2.1. I spent a week trying to upgrade to 3.1 and never got past a "tupple" error.

Thanks,
Dan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 4:18 pm 
Senior
Senior

Joined: Mon Apr 04, 2005 8:04 am
Posts: 128
Location: Manchester, NH USA
Are you using caching? Have you enabled SQL logging to see the SQL that is being executed?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 4:55 pm 
Newbie

Joined: Wed Dec 08, 2004 1:58 pm
Posts: 7
I haven't tried caching yet. When I look at the log it appears that there is a call for each update and insert. So there just a lot of calls back and forth (the network admin confirmed this as well). There isn't a lot of quering of tables that are static. Is there a caching approach that might limit the number of calls?

Thanks,
Dan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 5:57 pm 
Newbie

Joined: Thu Sep 02, 2004 2:31 pm
Posts: 12
Have you experimented with the hibernate.jdbc.batch_size property?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 4:12 pm 
Newbie

Joined: Wed Dec 08, 2004 1:58 pm
Posts: 7
I did try setting batch size but still didn't see an improvement.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 10:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You need to have a very close look at your queries and application flow. Once you have that in check then you can rework you data management. Its likely there are a few areas that you can get immediate benefit but this is generally a difficult (and potentially long) process.


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

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.