From: Daniele Varrazzo Date: Mon, 28 Mar 2022 18:07:32 +0000 (+0200) Subject: docs: add news entry about executemany() speedup X-Git-Tag: 3.1~145^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cb42342a9c435d50fb37c4fb56f0966c5abbc2b;p=thirdparty%2Fpsycopg.git docs: add news entry about executemany() speedup --- diff --git a/docs/news.rst b/docs/news.rst index 3fa17bb33..66e43178b 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -16,6 +16,8 @@ Psycopg 3.1 (unreleased) - Add :ref:`Two-Phase Commit ` support (:ticket:`#72`). - Add ``returning`` parameter to `~Cursor.executemany()` to retrieve query results (:ticket:`#164`). +- `~Cursor.executemany()` performance improved by using batch mode internally + (:ticket:`#145`). - Add `pq.PGconn.trace()` and related trace functions (:ticket:`#167`). - Add ``prepare_threshold`` parameter to `Connection` init (:ticket:`#200`). - Add `Error.pgconn` and `Error.pgresult` attributes (:ticket:`#242`). diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py index 49a1bca17..62a66acb1 100644 --- a/tests/test_pipeline.py +++ b/tests/test_pipeline.py @@ -187,7 +187,7 @@ def test_executemany_rowcount(conn): [(10,), (20,)], ) - # TODO: this is a bug. It is caused by reentering the pipeline mode in + # TODO: failing. It is caused by reentering the pipeline mode in # executemany(). Leaving it here to monitor how it changes. The snag is # in Cursor._set_results_from_pipeline() assert cur.rowcount == 2