> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Derick Rethans
> Sent: 27 June 2008 09:38
> To: Tobias Schlitt
> Cc: Bertrand Dunogier; Components
> Subject: Re: [Components] [PersistentObject] Design: Identity 
> map and relation pre-fetching support
> 
> 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.

Jared

-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to