From 9b52c8ae927ae2628dcc1763d2e31245285f4d88 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 2 Jul 2019 18:16:38 -0400 Subject: Rework proxy_cache fix to restore performance Adjustment to the fix made in I7fb134cac3604f8fe62e220fb24a0945d0a1c56f. Fixes: #4747 Change-Id: I2f1010b0abc1faa892f5e346e58f9c4a3867622f --- lib/sqlalchemy/sql/selectable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/sql/selectable.py') diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index 2c898e835..591086a46 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -542,7 +542,7 @@ class FromClause(roles.FromClauseRole, Selectable): operator.add, [ sc._annotations.get("weight", 1) - for sc in col.proxy_set + for sc in col._uncached_proxy_set() if sc.shares_lineage(column) ], ) @@ -550,7 +550,7 @@ class FromClause(roles.FromClauseRole, Selectable): operator.add, [ sc._annotations.get("weight", 1) - for sc in c.proxy_set + for sc in c._uncached_proxy_set() if sc.shares_lineage(column) ], ) -- cgit v1.2.1