Re: [SOLVED] Re: @sum optimization?
Re: [SOLVED] Re: @sum optimization?
- Subject: Re: [SOLVED] Re: @sum optimization?
- From: Alexander Spohr <email@hidden>
- Date: Tue, 29 Apr 2008 08:00:15 +0200
Am 28.04.2008 um 23:20 schrieb Florijan Stamenkovic:
The @keypath-actions are something that NSArray does. And NSArray
knows nothing about EOF.
Hm, this could easily be overridden by an EOF specific subclass...
An NSArray (a fault) that would respond to objectAtIndex(...) by
firing the fault and returning the appropriate object, but would
respond to valueForKeyPath("attribute.@sum") by asking EOF to
evaluate it directly. No?
EOF has no method to to count, sum, max, min and the like in the
database.
Well, maybe I am pushing this idea way too far :)
The idea sounds good but then you had two modi operandi:
1. count rows in the db
2. count objects in memory.
I am not sure if that would be a good idea, you might get different
results at different times.
atze
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden