]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- _get_equivalents() converted into a lazy-initializing property; Query was calling it
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 13 Jan 2008 19:04:55 +0000 (19:04 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 13 Jan 2008 19:04:55 +0000 (19:04 +0000)
commit188c2ac8e500054f1bfe54f91b0914f14854d311
tree4a4ca3bcd87cae02ce8366334be99bb525b183d0
parent17d3c8764e020379e54053bca0b0a2bc71d48aa0
- _get_equivalents() converted into a lazy-initializing property; Query was calling it
for polymorphic loads which is really expensive
- surrogate_mapper adapts the given order_by, so that order_by can be against the mapped
table and is usable for sub-mappers as well.  Query properly calls select_mapper.order_by.
CHANGES
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
test/orm/inheritance/query.py