FYI / For the record session.query(User).\ filter(User.prefs.has_key('inboundBusStop')).\ update({User.prefs: User.prefs.delete('inboundBusStop') }, synchronize_session="fetch")
The above deletes a key in an efficient manner. UPDATE user_data SET prefs=delete(user_data.prefs, %(param_1)s) WHERE user_data.prefs ? %(prefs_1)s {'prefs_1': 'inboundBusStop', 'param_1': 'inboundBusStop'} -- Adam Tauno Williams <mailto:awill...@whitemice.org> GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA -- 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/groups/opt_out.