• 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: Some help with Optimization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some help with Optimization


  • Subject: Re: Some help with Optimization
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 9 Feb 2006 18:36:29 -0800


On Feb 9, 2006, at 4:35 PM, Owen McKerrow wrote:

<snip>


I typically batch fetch rather than batch fault:

NSArray tempAllExs = EOUtilities.objectsWithFetchSpecificationAndBindings(ec, "External", "allMembers", NSDictionary.EmptyDictionary);
EOModelGroup defaultGroup = EOModelGroup.defaultGroup();
EODatabaseContext databaseContext = EODatabaseContext.registeredDatabaseContextForModel (defaultGroup.modelNamed("ModelName"), ec);
databaseContext.batchFetchRelationship(defaultGroup.entityNamed ("External").relationshipNamed("activeName"), tempAllExs, ec);
selectableExtenals = (NSArray)tempAllExs.valueForKey("activeName");

Unfortunately this won't work as activeName() isn't a real relationship, its a function. I may have to go back and add this relationship.

I think Art meant this:
databaseContext.batchFetchRelationship(defaultGroup.entityNamed ("External").relationshipNamed("personNames"), tempAllExs, ec);

personNames not activeName there


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ 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: 
 >Some help with Optimization (From: Owen McKerrow <email@hidden>)
 >Re: Some help with Optimization (From: Art Isbell <email@hidden>)
 >Re: Some help with Optimization (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Re: Some help with Optimization
  • Next by Date: Re: Further: Some help with Optimization
  • Previous by thread: Re: SOLVED: Some help with Optimization
  • Next by thread: Re: Some help with Optimization
  • Index(es):
    • Date
    • Thread