openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tlianza <>
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.


View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message