• 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: Inheritance and overriding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance and overriding


  • Subject: Re: Inheritance and overriding
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 21 Apr 2008 14:14:21 -0700


On Apr 21, 2008, at 1:24 PM, Florijan Stamenkovic wrote:

I don't know if you can do that in the model (the @sum) or not. Also, flattened attributes can have inconsistency problems. I'd lean towards the Java solution.

You mean, skip flattened attributes in total? Yeah, that would probably be easier to figure out. I was thinking of flattening stuff because I assume that would increase performance... I suppose I'll just try a Java only solution and see how it behaves...

I have never used flattened relationships. For performance, you can cache in the EOs as long as you are careful to clear or rebuild the cache when it is no longer valid.



Flor

btw, I guess by "inconsistency problems" you mean that flattened attribute values get cached and are not updated when something in the chain changes? I ask because if that's what you mean I can still use keypaths to easily obtain values in my Java methods...


Yes, that is what I meant. I recall the EOF docs (of some version) mentioning that this could be a problem.

Chuck


--

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


  • Follow-Ups:
    • Re: Inheritance and overriding
      • From: Florijan Stamenkovic <email@hidden>
    • WOWODC 2008
      • From: "Xia, Wen" <email@hidden>
References: 
 >Inheritance and overriding (From: Florijan Stamenkovic <email@hidden>)
 >Re: Inheritance and overriding (From: Chuck Hill <email@hidden>)
 >Re: Inheritance and overriding (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: Re: Inheritance and overriding
  • Next by Date: WOWODC 2008
  • Previous by thread: Re: Inheritance and overriding
  • Next by thread: WOWODC 2008
  • Index(es):
    • Date
    • Thread