• 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...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance...


  • Subject: Re: Inheritance...
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 7 May 2008 12:54:12 -0700


On May 7, 2008, at 12:48 PM, Florijan Stamenkovic wrote:

Hi all,

In the "[slightly OT] data modeling question" there is some talk of drawbacks of inheritance, specifically of vertical inheritance... Since I am currently contemplating implementing a reasonably complex system, and have thought of using vertical inheritance, this has got me worried. So, what's the deal???

My situation: a structure of over 10 entities (15ish), inheritance up to 4 levels in depth. The amount of records per entity will be quite small (ranging from 5 - maybe 30), so I do not worry about performance. Many operations will be defined on the topmost entity. Relationships will almost always relate to the topmost entity, which will be abstract. I might want to define additional subentities in the future. Subentities will have a sufficient amount of their own properties to discourage me from single table inheritance. Horizontal might do, I do not think I will be changing the existing structure once made.

I've never done inheritance till now. Am I going to commit suicide over this?


You might want to check for suicide exclusions in your life insurance policy. :-) David Avendasora was using Vertical with JC. He stopped. Maybe he can provide some pointers. My advice would be to ignore that "Subentities will have a sufficient amount of their own properties" and use Single Table. Or, failing that, Horizontal. Vertical is the least efficient and the least used hence has a higher probability of bugs.

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...
      • From: Robert Walker <email@hidden>
    • Re: Inheritance...
      • From: Mike Schrag <email@hidden>
References: 
 >Inheritance... (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: Inheritance...
  • Next by Date: Re: [slightly OT] data modeling question
  • Previous by thread: Inheritance...
  • Next by thread: Re: Inheritance...
  • Index(es):
    • Date
    • Thread