Check this testcase: https://gist.github.com/ThiefMaster/913446490d0e4c31776d
When assigning an object to the relationship attribute a SELECT is sent, but this does not happen when explicitly setting the attribute to None before assigning the object to it. If the SELECT being issued is not a bug, is initializing the attribute with an explicit `None` the proper way to avoid it? -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.