• 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: Convenience functions in model classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convenience functions in model classes


  • Subject: Re: Convenience functions in model classes
  • From: Mike Schrag <email@hidden>
  • Date: Sat, 5 Apr 2008 12:28:43 -0400

Remember that every call of this method goes into the database. That will kill your app.
Better fetch all Games in memory and order them into an NSArray(NSAray()) and use that.
If he's using the stock velocity templates, this will only fault the games(..) array once, and each successive call will just filter with the provided qualifier. If he called games(EOQualifier, true) it would refetch every time.

ms

_______________________________________________
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: 
 >Convenience functions in model classes (From: Jeff Schmitz <email@hidden>)
 >Re: Convenience functions in model classes (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: Convenience functions in model classes
  • Next by Date: mystery insert
  • Previous by thread: Re: Convenience functions in model classes
  • Next by thread: Re: Convenience functions in model classes
  • Index(es):
    • Date
    • Thread