summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/dynamic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-12 01:35:37 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-12 01:35:37 -0500
commit6d5dd2214a4cc6340d8f07147a43fac03a12b040 (patch)
treec83f93cc83f2793506b5e6a7c05450effe247c3c /lib/sqlalchemy/orm/dynamic.py
parent57b95f45536e1f9c4450d118f0fb2534606b6f2a (diff)
downloadsqlalchemy-6d5dd2214a4cc6340d8f07147a43fac03a12b040.tar.gz
- 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.
Diffstat (limited to 'lib/sqlalchemy/orm/dynamic.py')
0 files changed, 0 insertions, 0 deletions