From: Mike Bayer Date: Fri, 18 Jan 2019 05:35:00 +0000 (-0500) Subject: link the psycopg2 fast execution document to the Core tutorial executemany section X-Git-Tag: rel_1_3_0b2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ea803494a8c8fe93474d33758ca64687b275e4d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git link the psycopg2 fast execution document to the Core tutorial executemany section Fixes: #4109 Change-Id: I62fcb703b552db842be335c8f9257cc0e8c5cdd5 --- diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index 093900586b..98e703fb52 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -120,7 +120,7 @@ Modern versions of psycopg2 include a feature known as which have been shown in benchmarking to improve psycopg2's executemany() performance with INSERTS by multiple orders of magnitude. SQLAlchemy allows this extension to be used for all ``executemany()`` style calls -invoked by an :class:`.Engine` when used with multiple parameter sets, +invoked by an :class:`.Engine` when used with :ref:`multiple parameter sets `, by adding the ``use_batch_mode`` flag to :func:`.create_engine`:: engine = create_engine( @@ -130,6 +130,10 @@ by adding the ``use_batch_mode`` flag to :func:`.create_engine`:: Batch mode is considered to be **experimental** at this time, however may be enabled by default in a future release. +.. seealso:: + + :ref:`execute_multiple` - demonstrates how to use DBAPI ``executemany()`` + with the :class:`.Connection` object. .. versionadded:: 1.2.0