From: Mike Bayer Date: Fri, 15 Apr 2022 15:11:42 +0000 (-0400) Subject: update bake_queries documentation X-Git-Tag: rel_2_0_0b1~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=262c5a6fe10b57cba763857803699eb24fc5d20c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git update bake_queries documentation this parameter has had no effect since 1.4.23 in #6889, but the documentation was not updated. Change-Id: I36f4ea6144b9fd09243f96698e7a03cd217da1e7 (cherry picked from commit 2ea124b61f0ef98d398c43299509224e9a9d77f6) --- diff --git a/lib/sqlalchemy/orm/_orm_constructors.py b/lib/sqlalchemy/orm/_orm_constructors.py index 6e8a0e7713..ee6d561452 100644 --- a/lib/sqlalchemy/orm/_orm_constructors.py +++ b/lib/sqlalchemy/orm/_orm_constructors.py @@ -1099,20 +1099,11 @@ def relationship( :ref:`error_qzyx` - usage example :param bake_queries=True: - Enable :ref:`lambda caching ` for loader - strategies, if applicable, which adds a performance gain to the - construction of SQL constructs used by loader strategies, in addition - to the usual SQL statement caching used throughout SQLAlchemy. This - parameter currently applies only to the "lazy" and "selectin" loader - strategies. There is generally no reason to set this parameter to - False. + Legacy parameter, not used. - .. versionchanged:: 1.4 Relationship loaders no longer use the - previous "baked query" system of query caching. The "lazy" - and "selectin" loaders make use of the "lambda cache" system - for the construction of SQL constructs, - as well as the usual SQL caching system that is throughout - SQLAlchemy as of the 1.4 series. + .. versionchanged:: 1.4.23 the "lambda caching" system is no longer + used by loader strategies and the ``bake_queries`` parameter + has no effect. :param cascade: A comma-separated list of cascade rules which determines how