Hi Jared!

On 06/27/2008 12:33 PM Jared Williams wrote:

>> On Wed, 25 Jun 2008, Tobias Schlitt wrote:

>>> Please review the design draft and post your comments here.

>> Some comments:
>>
>>   Inside this method, first it should be checked if the same 
>> find query
>>   was already performed earlier. In this case, a cached 
>> result set can be
>>   returned.
>>
>> You can't really do that, as the data might have changed - 
>> unless you empty this whole cache when you run save() (and 
>> that's not mentioned).

> If the database & schema support having rowversions (usually automatically 
> updating timestamps, sqlite has rowids you can use IIRC) you should be able
> to determine if your object is stale.

I don't know how this could help in our case. Could you elaborate a bit
more on your idea?

Beside that, AFAIK not all databases support row IDs (e.g. MySQL). Since
PersistentObject is an abstraction layer, we cannot really rely on such
features.

Regard,
Toby
-- 
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards

Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer

[EMAIL PROTECTED] | eZ Systems AS | ez.no
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to