summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/json.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-11-10 17:01:58 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2022-11-11 15:25:35 -0500
commit1d8833a9c1ada64cfc716109a8836b32cb8a9bd6 (patch)
treeae5d2f6adfb578c43603b0141c27fad520c70e4f /lib/sqlalchemy/dialects/postgresql/json.py
parente3a8d198917f4246365e09fa975d55c64082cd2e (diff)
downloadsqlalchemy-1d8833a9c1ada64cfc716109a8836b32cb8a9bd6.tar.gz
ensure anon_map is passed for most annotated traversals
We can cache the annotated cache key for Table, but for selectables it's not safe, as it fails to pass the anon_map along and creates many redudant structures in observed test scenario. It is likely safe for a Column that's mapped to a Table also, however this is not implemented here. Will have to see if that part needs adjusting. Fixed critical memory issue identified in cache key generation, where for very large and complex ORM statements that make use of lots of ORM aliases with subqueries, cache key generation could produce excessively large keys that were orders of magnitude bigger than the statement itself. Much thanks to Rollo Konig Brock for their very patient, long term help in finally identifying this issue. Also within TypeEngine objects, when we generate elements for instance variables, skip the None elements at least. this also saves on tuple complexity. Fixes: #8790 Change-Id: I448ddbfb45ae0a648815be8dad4faad7d1977427
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/json.py')
0 files changed, 0 insertions, 0 deletions