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: caching POJO in session vs. DB queries in web application
PostPosted: Mon May 08, 2006 10:59 pm 
Beginner
Beginner

Joined: Sun May 02, 2004 8:04 am
Posts: 36
Hi,

In our webapp, I've been querying the DB for role and group info for every request and putting the information in the servlet request. I'm wondering if performance can be increased by placing the data in the http session instead and only querying the values from the DB when it has changed. It would increase the complexity of the underlying code but it would probably be worth it if performance would improve. I understand hibernate can do some caching as well, so I'm wondering how that compares.

Thanks, Jason


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.