-->
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.  [ 2 posts ] 
Author Message
 Post subject: caching for reference data
PostPosted: Wed Dec 02, 2009 11:15 am 
Newbie

Joined: Wed Dec 02, 2009 11:04 am
Posts: 2
Hi,

We have a web application which populates reference data dropdowns from DB (such as country list, state list etc). We are using simple hibernate mapping with list queries. We are not using any collections and all our domain objects are simple java objects. We have enabled second level caching & query caching & setting "setCacheable" to true for the select queries. But the performance is very bad. (around 31 sec for 3500 rows).. The list queries seem to add stuff to the cache, but are not hitting the cache in subsequent queries. Every query is going to the database. "find" queries do seem to hit the database.

What could be the problem? We have less control on the way the DB is setup, are there any other tips to improve the performace thr' code?

Any help is appreciated,
Chana


Top
 Profile  
 
 Post subject: Re: caching for reference data
PostPosted: Thu Dec 03, 2009 11:46 am 
Newbie

Joined: Wed Dec 02, 2009 11:04 am
Posts: 2
Just wanted to give this one 'bump' in hopes that some new eyes had insight. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.