]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use simple growth scale with any max size for BufferedRowResultProxy
authorsumau <soumaya.mauthoor@gmail.com>
Mon, 28 Oct 2019 19:22:08 +0000 (15:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 30 Oct 2019 14:50:44 +0000 (10:50 -0400)
commitd36b1f7f03841b9b346a6fd3395dd29333dce588
tree507f1cca6605dcb767074f0adfdf883fa2ace164
parent12623517def001caa275c2af172405e336c731ab
Use simple growth scale with any max size for BufferedRowResultProxy

The maximum buffer size for the :class:`.BufferedRowResultProxy`, which
is used by dialects such as PostgreSQL when ``stream_results=True``, can
now be set to a number greater than 1000 and the buffer will grow to
that size.  Previously, the buffer would not go beyond 1000 even if the
value were set larger.   The growth of the buffer is also now based
on a simple multiplying factor currently set to 5.  Pull request courtesy
Soumaya Mauthoor.

Fixes: #4914
Closes: #4930
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4930
Pull-request-sha: 66841f56e967c784f7078a787cec5129462006c8

Change-Id: I6286220bd9d488027fadc444039421a410e19a19
doc/build/changelog/unreleased_14/4914.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/engine/result.py
test/sql/test_resultset.py