DEV Community

Discussion on: Understanding Object Updates in SQLAlchemy ORM: A Balanced Approach

Collapse
 
antonofthewoods profile image
Anton Melser • Edited

Except there are some pretty curious choices they made in order to "optimise" updates, notably if you have a JSONB field and you don't update anything at the first level, it considers that there has been no update, and silently ignores any updates that were made. But only to that field, so any other updates to other fields WILL be sent to the server. So, yeah, like HORRIBLE!

Collapse
 
mochafreddo profile image
Geoffrey Kim

Thank you so much for bringing this up :D
You're absolutely right about SQLAlchemy's quirky behavior with JSONB fields. I've updated the article to include a new section specifically addressing this issue, as it's definitely something developers should be aware of.