Re: [sqlalchemy] Merge instances of objects without dropping attributes that are not persisted

2018-04-02 Thread Mike Bayer
On Mon, Apr 2, 2018 at 4:29 PM, Ruben Di Battista wrote: > Hello, > > I have some SQLAlchemy-persisted instances of objects that have some > relationships coming from a parallel execution with multiprocessing. When I > reduce the results coming from the several processes, I need to merge some > re

[sqlalchemy] Merge instances of objects without dropping attributes that are not persisted

2018-04-02 Thread Ruben Di Battista
Hello, I have some SQLAlchemy-persisted instances of objects that have some relationships coming from a parallel execution with multiprocessing. When I reduce the results coming from the several processes, I need to merge some relationships (`satellite` and `ground_station` objects in the code