openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tlianza <nab...@lianza.org>
Subject Re: Using QueryCache, still seeing queries sent to the DB
Date Tue, 03 Sep 2013 19:56:08 GMT
tlianza wrote
> SELECT m from ImageRepModel m where m._image = :image AND m._type = :type

So, we've done quite a bit more troubleshooting here and found that the
scenarios in which this query is *not* being cached is then the :image param
that's passed in is a *detached* ImageModel object.  Is there any reason
that should affect whether or not the query misses the cache?

Keep in mind the relationship here is such that this query only needs the
ImageModel's id, which is both available in the detatched object and is
marked as that object's primary key.

Thanks,
Tom



--
View this message in context: http://openjpa.208410.n2.nabble.com/Using-QueryCache-still-seeing-queries-sent-to-the-DB-tp7584807p7584837.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message