-->
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.  [ 3 posts ] 
Author Message
 Post subject: SOLVED: Miss on Query Cache with Date Parameter
PostPosted: Fri Jun 18, 2010 5:03 pm 
Newbie

Joined: Thu Jun 17, 2010 12:05 pm
Posts: 3
I'm caching a few different queries. I have one that always misses. It has a Date parameter but I zero out the time. I need some help investigating the problem.

Here is the portion of the log output:

DEBUG org.hibernate.cache.EhCache - Element for sql: select
...
where this_.RPT_ID=? and (sq2_.END_DT>? or sq2_.END_DT is null) and sq2_.RPT_FLG=?;
parameters: 1234, Fri Jun 18 00:00:00 MDT 2010, Y, ; transformer: org.hibernate.transform.RootEntityResultTransformer@7a25088f is null

Query and Parameters are identical on misses.


Last edited by dgrossen on Tue Jun 22, 2010 5:06 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Miss on Query Cache with Date Parameter
PostPosted: Tue Jun 22, 2010 5:05 pm 
Newbie

Joined: Thu Jun 17, 2010 12:05 pm
Posts: 3
The resulttransformer was unique on each query which explains the misses


Top
 Profile  
 
 Post subject: Re: SOLVED: Miss on Query Cache with Date Parameter
PostPosted: Wed Sep 22, 2010 6:38 am 
Newbie

Joined: Wed Sep 22, 2010 6:27 am
Posts: 3
Can you please let me know how to make result transformer does not create an unique object and does not make the query unique ,so that I can use in query cache. Is there any work around for it.
Please let me know
Best Regards
NG


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