summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/asyncio/session.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-12-22 08:34:15 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2022-02-10 11:09:22 -0500
commit22ed657827b487df9012def07271aed01bd4ae12 (patch)
treef1c0693953df077c00840321d3dbf563351d2698 /lib/sqlalchemy/ext/asyncio/session.py
parent449389a45f358300ba95f7d03c7b94b64703e31a (diff)
downloadsqlalchemy-22ed657827b487df9012def07271aed01bd4ae12.tar.gz
use QueuePool for sqlite file databases
The SQLite dialect now defaults to :class:`_pool.QueuePool` when a file based database is used. This is set along with setting the ``check_same_thread`` parameter to ``False``. It has been observed that the previous approach of defaulting to :class:`_pool.NullPool`, which does not hold onto database connections after they are released, did in fact have a measurable negative performance impact. As always, the pool class is always customizable via the :paramref:`_sa.create_engine.poolclass` parameter. Fixes: #7490 Change-Id: I5f6c259def0ef43d401c6163dc99f651e519148d
Diffstat (limited to 'lib/sqlalchemy/ext/asyncio/session.py')
0 files changed, 0 insertions, 0 deletions