On Apr 3, 2007, at 6:13 AM, Julien Cigar wrote:

>
> Another quick question, relative to multiple inheritance.
> Is it common to keep a back reference to the parent class within the
> child class ?

sure, any relation() can have a backref.  if its buggy with a big  
inheritance relationship, id be about 50% surprised at this point  
since we have a lot of tests now.

>
> the other idea is to add a string like "page" or "news" in the Content
> table (or another table) ..
> what do you think is the best solution ?
>

id try the backrefs, if theres issues with polymorphic loading or too  
many queries being issued then i might look at just having strings  
inside a table...this is all stuff you figure out by watching your  
queries go by, and deciding if you want that many queries with that  
level of complexity happening, based on how big your tables are, how  
much load, indexing, etc.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to