]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
configurable chunksize parameter for selectinload
authorbekapono <bsiliezar2@gmail.com>
Wed, 22 Apr 2026 21:15:29 +0000 (17:15 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 Apr 2026 18:26:22 +0000 (14:26 -0400)
commit95eb9510fb9528e7de7cff73cfe8e66a76a78741
tree8399b2d0a9ec733dc7411c095138cef6cc70cacb
parentdeb949fe05ed8ff0f72f01d53f08f21ba8776aef
configurable chunksize parameter for selectinload

Added :paramref:`.selectinload.chunksize` parameter to :func`.selectinload`
allowing users to configure the number of primary keys sent per IN clause
when loading reltaionships. Pull request courtesy bekapono.

Fixes: #11450
Closes: #13235
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13235
Pull-request-sha: 360585a48c0fe898aa249769e9c7c1171f9e0988

Change-Id: Id09776b7ba53c630a780f128fc67dfdc085a4062
doc/build/changelog/unreleased_21/11450.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_selectin_relations.py