Re: [sqlalchemy] Comparing an SQLAlchemy object to a similar object

2021-04-12 Thread Mike Bayer
option #1 seems much simpler I'd likely start with that re uuid, I usually take the "existing" ids and put them in a dictionary so I know which ones to skip, absolutely. I don't understand what the "list comprehension" approach would entail that isn't using a hash lookup of some kind. On S

[sqlalchemy] Comparing an SQLAlchemy object to a similar object

2021-04-10 Thread Andrew Martin
Hi everyone, This might be a totally premature optimization, but I want to at least start off in the right direction. I'm pulling messages from a slack channel into an Airflow DAG and writing events to a table if certain attributes of the slack message has changed. Slack message structures ar