> > I would have to produce anonymized mappings, but I will do so if it's
> > What do you mean by "incorrect placement of a flag like
> > `remote_side`"? I do have one (exactly one) relation with a
> > `remote_side` flag, but the class it is defined on isn't involved in
> > the script I have timed here. (it is on a recursive relation)
>
> if its "backwards" versus a backref that is also present, it can create an
> overly complex dependency chain.
I'm not sure I understand. Does it also apply when the backref is
created implicitly, as follows:
class OT(DeclarativeBase):
[ snip ]
id_ot = Column(Integer, autoincrement=True, primary_key=True)
id_parent = Column(Integer,
ForeignKey('ot.id_ot', use_alter=True,
name='fk_ot_parent'))
OT.parent = relation(OT, remote_side=[OT.id_ot],
backref=backref('children'))
> the configure only takes effect for the next session created. so if you
> said Session.remove(); Session.configure(); Session(), that would do it.
Ok, thank you.
Regards
Antoine.
--
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.