Re: [sqlalchemy] Forcing relationships to load before after_commit

2018-10-11 Thread Benjamin Bertrand
Oct 10, 2018 at 4:40 PM Benjamin Bertrand > wrote: > > > > Hi, > > > > I'm trying to index some data from my postgres database to > elasticsearch. I do something similar to what is described in this blog > post: > https://blog.miguelgrinberg.com/

[sqlalchemy] Forcing relationships to load before after_commit

2018-10-10 Thread Benjamin Bertrand
Hi, I'm trying to index some data from my postgres database to elasticsearch. I do something similar to what is described in this blog post: https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xvi-full-text-search I store the new or modified objects in the before_flush event and w