Could somebody help clarify this difference between *reconciling* and *stamp*(load=True vs. load=False) with session.merge(), ideally by an example? Thanks very much.
On Thursday, July 17, 2014 8:01:42 PM UTC-7, Bao Niu wrote: > > If the load=True flag is left at its default, this copy process emits >> events and will load the target object’s unloaded collections for each >> attribute present on the source object, so that the incoming state can be >> reconciled against what’s present in the database. If load is passed as >> False, the incoming data is “stamped” directly without producing any >> history. >> > > I have a question regarding the above section: > What exactly is the difference between *reconciling* and *stamp*(load=True > vs. load=False)? These two abstract words really are not quite clear for a > beginner to understand it. I would suppose that the end result would always > be the source object's state being completely transferred onto the target > object. I couldn't see any difference between *reconciling* and *stamp*. > Could someone give an example here to illustrate the purpose of this > parameter? > Thanks. > -- 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 http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.