cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: Using Cache?
Date Mon, 25 Oct 2010 13:29:39 GMT
Sounds like you might be using the cache.  Look at the bottom of:

http://cayenne.apache.org/doc30/caching-query-results.html

Especially the context.performQuery("MyQuery", false) part.

mrg

PS. I believe the screenshot is a bit out-of-date for that page, too.


On Mon, Oct 25, 2010 at 9:14 AM, Bruno René Santos <brunorene@holos.pt> wrote:
> I did a named query on the modeller, with shared cache. But when I see the log
> from cayenne i have the query repeating itself with different processing
> times(e.g. the 1st one takes 100ms and then the following 0-2 ms). A processing
> time of 0-2 ms means that cayenne is going to the cache? Or there is some sort
> of description on the log for a cache retrieval?
>
> Bruno
>
> -----Mensagem original-----
> De: Michael Gentry [mailto:mgentry@masslight.net]
> Enviada: segunda-feira, 25 de Outubro de 2010 13:56
> Para: user@cayenne.apache.org
> Assunto: Re: Using Cache?
>
> How are you doing your query?  SelectQuery should hit the database
> again.  Also, your logs would show the SelectQuery hitting the
> database.
>
> mrg
>
>
> On Sat, Oct 23, 2010 at 7:29 PM, Bruno René Santos <brunorene@holos.pt> wrote:
>> Hello all,
>>
>> How can I know if Cayenne is going to the cache to retrieve query results or
>> database items? The regular log says something?
>>
>> Thank you
>> Bruno Santos
>>
>>
>
>

Mime
View raw message