]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- a major behavioral change to collection-based backrefs: they no
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Dec 2007 20:43:16 +0000 (20:43 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Dec 2007 20:43:16 +0000 (20:43 +0000)
commit9e4052dc8be2451d1c48bb059da150ce41ddc86f
treea8711523c53feafa142073e6689a51b9cfcc5608
parent238c2c8dbe3ca5b92d298b39e96f81eb416d1413
- a major behavioral change to collection-based backrefs: they no
longer trigger lazy loads !  "reverse" adds and removes
are queued up and are merged with the collection when it is
actually read from and loaded; but do not trigger a load beforehand.
For users who have noticed this behavior, this should be much more
convenient than using dynamic relations in some cases; for those who
have not, you might notice your apps using a lot fewer queries than
before in some situations. [ticket:871]
CHANGES
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/dynamic.py
test/orm/attributes.py
test/orm/lazy_relations.py
test/orm/mapper.py
test/orm/unitofwork.py