]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- refactor query._get() into two methods - a static one that does
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Dec 2010 06:35:37 +0000 (01:35 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Dec 2010 06:35:37 +0000 (01:35 -0500)
commit6d5dd2214a4cc6340d8f07147a43fac03a12b040
treec83f93cc83f2793506b5e6a7c05450effe247c3c
parent57b95f45536e1f9c4450d118f0fb2534606b6f2a
- refactor query._get() into two methods - a static one that does
just the identity map lookup + expired check, the other
which does the load unconditionally.  All the refresh/deferred load
calls use the unconditional load method, query.get() and
LoadLazyAttribute call the identity check by itself first.   m2o
lazyloads for object already in the identity map callcounts are
now cut in half, since no Query object is created.
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/strategies.py
test/aaa_profiling/test_orm.py
test/lib/requires.py
test/orm/test_utils.py