From bf70786950460300f796dbd9ba20001498c67896 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 (cherry picked from commit 07a199d929aa920b5b2b5d8b2d7008626a731f1f) --- 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 ce6d443f95..971f56457c 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 43d7889eba..a6251e8d50 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.3