Re: Inheritance and overriding
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