]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
send in the dragons on async_scoped_session
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 3 Aug 2022 16:08:54 +0000 (12:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 3 Aug 2022 16:18:26 +0000 (12:18 -0400)
commitac463218f45255f92c5ef0390c337fe60506c917
tree129e49b7557b31401455e5f3bf5985711ef4e221
parent8b004a87a175941dffa1847cc8d4e0e7bf272d48
send in the dragons on async_scoped_session

make it clear that async_scoped_session.remove() must
be called, else memory will build up.    Generally
discourage the whole pattern as well, as this is a
"framework" pattern and we don't really want to be supporting
frameworks.    Also indicate that scopefunc must be idempotent
and lightweight.

Fixes: #8340
Change-Id: Ibc3d21124ae73c3b25ee51966504bbb1975c36b2
(cherry picked from commit c2327ec60f3f3b52a4b3a0daeef39174d96d225e)
doc/build/orm/extensions/asyncio.rst