On Saturday 24 March 2007 21:35:19 Michael Bayer wrote: > On Mar 24, 2007, at 4:38 PM, [EMAIL PROTECTED] wrote: > >> i would also say its slightly better in the case of joined table > >> inheritance to *not* query for the type column as well since it > >> can add weight to the query. > > > > hmm, probably. how else one can do the filtring then? some > > left/right join? > > assuming youre only querying one specific type, using a join of > specifically those tables involved in the joined table inheritance > of that type. but this is only so if the class/table is a leaf in the hierarchy. If it is an intermediate level, joining via that table will give instances of that class and all subclasses...
> polymorphically you need the types. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---