• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED] Re: @sum optimization?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [SOLVED] Re: @sum optimization?
      • From: Florijan Stamenkovic <email@hidden>
References: 
 >@sum optimization? (From: Florijan Stamenkovic <email@hidden>)
 >Re: @sum optimization? (From: Florijan Stamenkovic <email@hidden>)
 >Re: @sum optimization? (From: Alexander Spohr <email@hidden>)
 >[SOLVED] Re: @sum optimization? (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: Re: Apple Defines a Product Road Map for WebObjects!
  • Next by Date: Re: Best Server Environment for Large WebObjects Applications
  • Previous by thread: [SOLVED] Re: @sum optimization?
  • Next by thread: Re: [SOLVED] Re: @sum optimization?
  • Index(es):
    • Date
    • Thread