-->
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: L2 caching possible with Criteria API?
PostPosted: Tue Sep 14, 2010 10:03 pm 
Newbie

Joined: Tue Sep 14, 2010 9:48 pm
Posts: 2
hi all-

i'm developing the service behind a UI-driven application and opted to use Hibernate as the data access framework to take advantage of the benefits provided by the Criteria API. i essentially have a chain of classes dedicated to handling each possible user input field from the UI, and a DetachedCriteria instance is passed along that chain to be built up and finally executed within a new Session instance.

as of late i've noticed that a rather significant portion of the overall time spent processing a request can be directly attributed to loading/creating association object instances. since the the make-up of these objects is largely (if not totally) static i thought i would be able to enable the L2 caching and have Hibernate hydrate cached values for these objects rather than fetching and re-creating them several times over (even in the same request). however, i only see the objects being added to the cached - i don't actually see them being consumed from the cache.

i'm pretty green here - is what i'm trying to do even possible? any/all guidance would be greatly appreciated.


Top
 Profile  
 
 Post subject: Re: L2 caching possible with Criteria API?
PostPosted: Thu Sep 16, 2010 5:26 pm 
Newbie

Joined: Tue Sep 14, 2010 9:48 pm
Posts: 2
...anybody out there?


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.