]> git.ipfire.org Git - thirdparty/psycopg.git/commit
perf: base executemany on pipeline
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 27 Mar 2022 03:55:51 +0000 (05:55 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Apr 2022 23:23:22 +0000 (01:23 +0200)
commit7acf241ffee0df08692a8d11547504002dbafba6
tree6d6d7bbc41c41a777ab9d4e88f2329c5ee32a350
parent006ff3a504a933dbcd909d13f23986d0e87f4cb5
perf: base executemany on pipeline

This changeset also fix several glitches of executemany() run in
pipeline mode, around the management of returned value and rowcount.
These glitches still appear if executemany() is run in an explicit
pipeline() block, because certain events only happen at (outermost)
pipeline block exit.

Related to: #145.
psycopg/psycopg/_pipeline.py
psycopg/psycopg/cursor.py
psycopg/psycopg/cursor_async.py
tests/test_pipeline.py