• 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: lean EO's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lean EO's


  • Subject: Re: lean EO's
  • From: Michael Engelhart <email@hidden>
  • Date: Fri, 13 Aug 2004 11:20:41 -0500

That sounds like just what I'm looking for. If the Jonathan with "the trick" would please raise his hand I'd appreciate it :-)

Mike
On Aug 13, 2004, at 9:59 AM, Arturo Perez wrote:

Michael Engelhart wrote:

I have an EO that has about 20 boolean values in it that I don't need for 90% of my application. Is it as simple a matter as commenting out the methods in my EO and renaming it and using that reference in my application to gain a performance benefit and memory footprint benefit? Do I also need to modify my EOModel to create a new Entity that doesn't map to those fields?

There's someone on the list (one of the Jonathan's?) that has a trick for accessing values that aren't normally in the EO (like the PK). That is, things that aren't class members.


What you could do is leave the methods in but rewrite them using the above trick. Then make them not class members by turning off the diamond in EOMOdeller.

This gets you the lighter weight 90% of the time while still supporting the other 10%.

-arturo
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >lean EO's (From: Michael Engelhart <email@hidden>)
 >Re: lean EO's (From: "Arturo Perez" <email@hidden>)

  • Prev by Date: Re: non-linear worepetition
  • Next by Date: WO blocking/threading question
  • Previous by thread: Re: lean EO's
  • Next by thread: Xerces parser used by WOXMLDecoder
  • Index(es):
    • Date
    • Thread