• 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: @sum optimization?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @sum optimization?


  • Subject: Re: @sum optimization?
  • From: Pierre Bernard <email@hidden>
  • Date: Mon, 28 Apr 2008 17:39:22 +0200

No, there is no such optimization. Once you are in the OO world, you stay there: an optimization would break if you were to have uncommited additions to "books"

There are however ways to have such operations performed by the database:
http://code.google.com/p/houdah-webobjects-frameworks/source/browse/trunk/HoudahEOAccess/src/com/houdah/eoaccess/utilities/SpecialityFetches.java


Best,
Pierre Bernard
Houdah Software s.à r.l.

On 28 Apr 2008, at 16:54, Florijan Stamenkovic wrote:

Hi all,

Is there an optimization in EOF not to fire a fault for a to-many when it is asked for a @sum across it?

An idiotic example:

Author a = // fetch an author, do NOT pre-fetch it's "books"
Integer numberOfPagesSum = (Integer)a.valueForKeyPath("email@hiddenrOfPages");


F
_______________________________________________
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

- - - Houdah Software s. à r. l. http://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Powerful Spotlight frontend




--- Pierre Bernard http://www.bernard-web.com/pierre http://www.houdah.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >@sum optimization? (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: Re: Forms changed to http with Eclipse/WOLips?
  • Next by Date: Re: Forms changed to http with Eclipse/WOLips?
  • Previous by thread: @sum optimization?
  • Next by thread: Re: @sum optimization?
  • Index(es):
    • Date
    • Thread