From 07a199d929aa920b5b2b5d8b2d7008626a731f1f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 30 Oct 2015 11:47:32 -0400 Subject: [PATCH] - cross-linking for pool recycle feature --- doc/build/core/pooling.rst | 2 ++ lib/sqlalchemy/dialects/mysql/base.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/doc/build/core/pooling.rst b/doc/build/core/pooling.rst index e00db02a89..094eff4c46 100644 --- a/doc/build/core/pooling.rst +++ b/doc/build/core/pooling.rst @@ -209,6 +209,8 @@ correspond to a single request failing with a 500 error, then the web applicatio continuing normally beyond that. Hence the approach is "optimistic" in that frequent database restarts are not anticipated. +.. _pool_setting_recycle: + Setting Pool Recycle ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index 2c78de2fc6..ad3ffa6f8c 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -32,6 +32,11 @@ the ``pool_recycle`` option which controls the maximum age of any connection:: engine = create_engine('mysql+mysqldb://...', pool_recycle=3600) +.. seealso:: + + :ref:`pool_setting_recycle` - full description of the pool recycle feature. + + .. _mysql_storage_engines: CREATE TABLE arguments including Storage Engines -- 2.47.2