On 8/4/06, Bjørn Stabell <[EMAIL PROTECTED]> wrote:
>
> Just a question; how does this compare pros and cons with single-table
> inheritance, used in Rails?  See:
>
>   http://twelvelabs.com/singletable/index.html

http://www.objectmatter.com/vbsf/docs/maptool/ormapping.html

Check out the section on Horizontal Mapping vs. the one on Filtered
Mapping. Also, there's a good explanation in Martin Fowler's Patterns
of Enterprise Application Architecture.

In short:

STI is theoretically faster, but you can't really enforce db-level
integrity constraints. The proposed implementation is theoretically
slower (can involve a lot of joins for deep class hierarchies), but
not null and foreign key contraints can actually be enforced at the db
level. Those are the main points I remember, but there are many more.

Joseph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to