On Wed, 2005-04-27 at 18:24 -0400, Andrus Adamchik wrote:
> > Are there any plans to implement the aggregate..YZ
> > functions that EOF has: eg)
> > objectArray.valueForKeyPath(..um.fileSize");
>
> You may look at it two ways:
>
> 1. To- many relationship is just a simple Java List, so you can create any
> operations working with list data in a general fashion without any
> dependency on Cayenne (i.e. this feature is nice but doesn't belong here).
>
> or ...
>
> 2. To-many relationship is a "smart" List backed by a database data.
> Performing aggregate operations may be more efficient via a special DB
> query that does not have to read all objects in memory first ... Even
> better - it can be smart about it - if relationship is already faulted, it
> can evaluate an operation in-memory, if not - do a DB query.
>
> In fact (2) is an extension of (1) and I was thinking about adding this to
> Cayenne. The question is when...
Thanks for the info. It was more curiosity on my part than anything
else.
cheers,
-
shaun
This archive was generated by hypermail 2.0.0 : Wed Apr 27 2005 - 21:59:16 EDT