From d5be2cc1391d0ff4b21557b036eba4713fde7bcf Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 13 Nov 2022 21:48:53 -0500 Subject: perf improvements related to corresponding_column (2) commit two of two. this reorganizes ColumnCollection to build a new index up front that's used to optimize the corresponding_column() method. Additional performance enhancements within ORM-enabled SQL statements, specifically targeting callcounts within the construction of ORM statements, using combinations of :func:`_orm.aliased` with :func:`_sql.union` and similar "compound" constructs, in addition to direct performance improvements to the ``corresponding_column()`` internal method that is used heavily by the ORM by constructs like :func:`_orm.aliased` and similar. Fixes: #8796 Change-Id: I4a76788007d5a802b9a4081e6a0f6e4b52497b50 --- test/sql/test_selectable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/sql') diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py index 897d6c5ff..a467bb0a3 100644 --- a/test/sql/test_selectable.py +++ b/test/sql/test_selectable.py @@ -3071,7 +3071,7 @@ class AnnotationsTest(fixtures.TestBase): # proxy_set, as corresponding_column iterates through proxy_set # in this way d = {} - for col in p2._uncached_proxy_set(): + for col in p2._uncached_proxy_list(): d.update(col._annotations) eq_(d, {"weight": 10}) @@ -3087,7 +3087,7 @@ class AnnotationsTest(fixtures.TestBase): proxy._proxies = [c1._annotate({"weight": 10})] d = {} - for col in proxy._uncached_proxy_set(): + for col in proxy._uncached_proxy_list(): d.update(col._annotations) eq_(d, {"weight": 10}) -- cgit v1.2.1