]> 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:17:54 +0000 (12:17 -0400)
commitc2327ec60f3f3b52a4b3a0daeef39174d96d225e
tree05fd256942b4998ee2bac4f85461dcf8bccfd64c
parent3ef9fa6d4ff8ade8915000b41c262caf4a88e064
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
doc/build/orm/extensions/asyncio.rst