diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-22 15:09:27 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-22 15:09:27 +0000 |
commit | c03b6c2e41f309b122e300b2625a9f744ad690b8 (patch) | |
tree | 48d2c99e5dfc33a426871ca5af84a9b5f9738d6b /lib/sqlalchemy/databases/mysql.py | |
parent | 3c80e59ebce9ae404b092011dce70598b563ff23 (diff) | |
download | sqlalchemy-c03b6c2e41f309b122e300b2625a9f744ad690b8.tar.gz |
- attributes now has an "active_history" flag. This flag indicates that when new value is set or the existing value is deleted, we absolutely need the previous value to be present, including if it requires hitting a lazy loader. Since somewhere around 0.4 we had not been loading the previous value as a performance optimization.
- the flag is set by a ColumnLoader which contains a primary key column. This allows the mapper to have an accurate record of a primary key column when _save_obj() performs an UPDATE.
- the definition of who gets "active_history" may be expanded to include ForeignKey and any columns participating in a primaryjoin/seconddary join, so that lazyloaders can execute correctly on an expired object with pending changes to those attributes.
- expire-on-commit is why this is becoming a more important issue as of late
- fixes [ticket:1151], but unit tests, CHANGES note is pending
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
0 files changed, 0 insertions, 0 deletions