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 <brunoren..olos.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:mgentr..asslight.net]
> Enviada: segunda-feira, 25 de Outubro de 2010 13:56
> Para: use..ayenne.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 <brunoren..olos.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
>>
>>
>
>
This archive was generated by hypermail 2.0.0 : Mon Oct 25 2010 - 13:30:31 UTC