Re: Question about Caching.

2009-04-21 Thread Nikos Paraschou
Στις 21-04-2009, ημέρα Τρι, και ώρα 13:58 +0300, ο/η Andrus Adamchik έγραψε: > Yes, this is normal. Altering parameters changes the query, so in two > case you end up with two different queries behind the scenes, each > cached separately. It is clear now. Thank you for helping. Nikos > > A

Re: Question about Caching.

2009-04-21 Thread Andrus Adamchik
Yes, this is normal. Altering parameters changes the query, so in two case you end up with two different queries behind the scenes, each cached separately. Andrus On Apr 21, 2009, at 1:50 PM, Nikos Paraschou wrote: Στις 21-04-2009, ημέρα Τρι, και ώρα 13:21 +0300, ο/ η Andrus Adamchik έγρα

Re: Question about Caching.

2009-04-21 Thread Nikos Paraschou
Στις 21-04-2009, ημέρα Τρι, και ώρα 13:21 +0300, ο/η Andrus Adamchik έγραψε: > > Shouldn't it first look in cache? > > > Yes it should. Are you using the same set of parameters in both cases? In the first case I am just calling the query "selectVehicles" which is stored in DataMap without defini

Re: Question about Caching.

2009-04-21 Thread Andrus Adamchik
Shouldn't it first look in cache? Yes it should. Are you using the same set of parameters in both cases? And also which version of Cayenne is this? Andrus On Apr 21, 2009, at 12:28 PM, Nikos Paraschou wrote: Hello, I created an Object Select Query in the Modeller which selects * from t

Question about Caching.

2009-04-21 Thread Nikos Paraschou
Hello, I created an Object Select Query in the Modeller which selects * from table Vehicles. The query has a qualifier (plate = $plate). In Result Caching I selected Shared Cache and unchecked the checkbox Refresh Results. I wrote the following code: Map params = new HashMap(); p